hi guys
i am trying to activate a windows vm using the invoke vmscript powercli command
cmd /c slmgr / ato works fine when i run it from a dos command but when i call this via a script then the script just hangs
I have also tried to put the command above in a batch file locally on the system and just use invoke vmscript to run the batch file but that just hangs also
any idea what i am missing ?
$test = "cmd /c slmgr/ato"
Invoke-VMScript -Scripttype bat -ScriptText $test -VM $vm -GuestUser administrator -GuestPassword -------