Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 236436

Re: Can a PowerCLI script display a prompt on a Guest OS?

$
0
0

So I found a script from someone else that will do the reboot and prompt, however when I try to run the Invoke-VMScript it seems to work, but nothing happens.  I have this in my script:

 

$script = '&env:script\CustomRestart.ps1'

Invoke-VMScript -vm $vm -ScriptText $script -ScriptType Powershell -GuestCredential $GuestCredential

 

Output appears fine in PowerCLI, but it doesn't run on the VM.  What am I missing?


Viewing all articles
Browse latest Browse all 236436

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>