Hi All,
I'm trying to automate Auto Deploy Rules using Powershell. All the PowerCLI cmdlets are there to perform the tasks that I need and the script works perfectly but only the first time, If i run script again it fails, this only happens with DeployRule cmdlets. The error i get is below also see screenshot.
Copy-DeployRule | Not authenticated. Possible cause of this error is that connection was left unused for a while and session has timed out. In such case use Connect-VIServer to reconnect. |
Funny thing is If I close Powershell ISE and reopen it works but again only once.. any ideas?