VMware Cloud Community
vmb01
Enthusiast
Enthusiast
Jump to solution

command to reboot a VM

I need to reboot a VM started in the recovery site.

So in this VM i've insetreted a POST POWER ON STEP, type COMMAND ON RECOVERED VM and the content is:

shutdown /r /t 5 /f

The syntax of the command is correct, I've tested it! But when I run the test of the recovery plan I get:

Error - The command 'shutdown /r /t 5 /f ' returned a non-zero value: 21.

Any idea?

0 Kudos
1 Solution

Accepted Solutions
vNEX
Expert
Expert
Jump to solution

Hello vmb01,

this should work:

C:\Windows\System32\shutdown.exe /r /t 5 /f || exit 0

Regards,

P.

_________________________________________________________________________________________ If you found this or any other answer helpful, please consider to award points. (use Correct or Helpful buttons) Regards, P.

View solution in original post

0 Kudos
2 Replies
rachelsg
Enthusiast
Enthusiast
Jump to solution

Hi

Welcome to communities.

Could you please update little more error from event log  after execution of the command. .

0 Kudos
vNEX
Expert
Expert
Jump to solution

Hello vmb01,

this should work:

C:\Windows\System32\shutdown.exe /r /t 5 /f || exit 0

Regards,

P.

_________________________________________________________________________________________ If you found this or any other answer helpful, please consider to award points. (use Correct or Helpful buttons) Regards, P.
0 Kudos