![]() ![]() Invoke-Command –ComputerName, , websrv7.mydomain. ![]() $Cred = New-Object $Username,$PasswordSS $PasswordSS = ConvertTo-SecureString $adcredential -AsPlainText -Force (as mentioned swapping the commands to run a basic dir listing returns the data). At first i tried it as a project variable and decided to troubleshoot it with the hard coded app pool name instead.Īny ideas why it’s not recycling the app pool? Nothing is returning in the task and it’s marked as success. When trying to use the restart-webapppool command with the app pool hard coded it doesn’t error and doesn’t do anything. I’ve passed in the domain variables from the project variable and able to get the powershell to execute against the same servers to run a request on them, for example ls d: returns fine from each of the servers so no issues with the ad credentials. These aren’t the servers with tenacle, hence using the invoke command. ![]() I’m trying to use the script task to execute the following powershell to recycle the app pools on a number of remote servers as part of our release. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |