My command is throwing an error and am not getting any help
I have powercli 5.1 installed.Already tried reinstalling the powercli.
The host os is windows 2008r2
guest os is windows 2008r2
The same commandlet is working on other vcenter vm.
What is that I could be wrong ?
PS C:\Users\test> Invoke-VMScript -VM vmtest -ScriptText "Set-ExecutionPolicy RemoteSigned -Confirm:`$false"
-GuestCredential $guestCreds
I am not able to get any help for this
Invoke-VMScript : 2/27/2013 9:35:48 AM Invoke-VMScript While performing operation 'Open VM file '[123-1] vmtest/vmtest.vmx'' the following error occured: 'There was an error in communication'
At line:1 char:16
+ Invoke-VMScript <<<< -VM vmtest -ScriptText "Set-ExecutionPolicy RemoteSigned -Confirm:`$false" -GuestCredential $
guestCreds
+ CategoryInfo : OperationStopped: (:) [Invoke-VMScript], VimException
+ FullyQualifiedErrorId : Client20_VmGuestServiceImpl_VixWaitForJob_VixError,VMware.VimAutomation.ViCore.Cmdlets.C
ommands.InvokeVmScript