Looking for some assistance on a simple SCVMM script. What I need is to get a list of all virtual machines on a particular VM Host but the script has to get this information from the SCVMM server.
Currently I can use the following and get all the virtual machines for all VM hosts on the SCVMM server:
Get-VM -VMMServer SCVMMServer | Sort-Object Hostname | Select-Object HostName, Name, ComputerName, Status, StopAction, StartAction
However, how can I parse this information to grab only the virtual machines from a particular VM host rather than all of them?