VMware Cloud Community
Poom22
Enthusiast
Enthusiast

Invoke-VMScript The operation is not allowed in the current state.

Hi all

I'm just trying to invoke-VMscript on a VM ,

PowerCLI - latest but using 32bit for invoke-vmscript

vCenter 6.0 - 3018524

Invoke-VMScript -VM C365-bp-LP-x -ScriptText "C:\temp\script.bat" -GuestUser username -GuestPassword password

Invoke-VMScript : 31/03/2017 17:14:48    Invoke-VMScript        The operation

is not allowed in the current state.

At line:1 char:1

i dont really understand, the VM is on and no alarms etc, no other operations running on the VM, has anyone else experienced this?

0 Kudos
1 Reply
jpsider
Expert
Expert

have you tried adding:

-ScriptType Bat

0 Kudos