VMware Cloud Community
bowulf
Enthusiast
Enthusiast
Jump to solution

Shut down guest - possible?

Rather than use "Stop-VM" command, I'd like to use the "shut down guest" functionality in the VMware tools scripts and VirtualCenter. Is this possible via Powershell?

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Isn't the Shutdown-VmGuest doing this ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
6 Replies
LucD
Leadership
Leadership
Jump to solution

Isn't the Shutdown-VmGuest doing this ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
bowulf
Enthusiast
Enthusiast
Jump to solution

Thank you - that was it... I was looking for the command under the get-vm help. That helped me out. Thanks again.

0 Kudos
BroutinR
Contributor
Contributor
Jump to solution

Hi,

I'm using the VI toolkit for Windows and it seems that I don't have the Shutdown-VmGuest cmdlet. Is this normal?

Thank you

Raphaël

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Are you using the latest build (81531) ?

You can check with Get-VIToolkitVersion.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
halr9000
Commander
Commander
Jump to solution

You must be using an earlier build. If you don't see the below, then you are using a build before the public beta. Unless of course I've mixed up which build is which which is entirely possible. Smiley Happy

34# Get-Command *guest*

CommandType     Name                                      Definition
-----------     ----                                      ----------
Cmdlet          Get-VMGuest                               Get-VMGuest [-VM] <VirtualMachine[]> ...
Cmdlet          Restart-VmGuest                           Restart-VmGuest [[-VM] <VirtualMachin...
Cmdlet          Shutdown-VmGuest                          Shutdown-VmGuest [[-VM] <VirtualMachi...
Cmdlet          Suspend-VmGuest                           Suspend-VmGuest [[-VM] <VirtualMachin...

Hal Rottenberg

Co-Host, PowerScripting Podcast (http://powerscripting.net)

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
0 Kudos
BroutinR
Contributor
Contributor
Jump to solution

sorry for answering that late!

I don't even got the Get-VIToolkitVersion cmdlet! :smileygrin: I'm using build 68764...

I have just downloaded the 81531. I'm gonna retry.

Thank you for your help.

Sincerely

0 Kudos