A: After the Hyper-V module has been loaded in PowerShell (Import-Module Hyper-V), find a list of all cmdlets by using this command:

Get-Command -Module Hyper-V

If you want to list the types of objects that commands can be run on, you need to see all the unique nouns available. Use the following command:

Get-Command -Module Hyper-V | Select -Unique Noun | Sort Noun

Notice in the example that everything starts with VM except for VFD and VHD, which makes it easy to identify virtual machine (VM) related objects.

 

PS C:\> Get-Command -Module Hyper-V | Select -Unique Noun | Sort Noun

Noun
----
VFD
VHD
VM
VMBios
VMComPort
VMConnectAccess
VMDvdDrive
VMFailover
VMFibreChannelHba
VMFloppyDiskDrive
VMHardDiskDrive
VMHost
VMHostNumaNode
VMHostNumaNodeStatus
VMIdeController
VMInitialReplication
VMIntegrationService
VMMemory
VMMigration
VMMigrationNetwork
VMNetworkAdapter
VMNetworkAdapterAcl
VMNetworkAdapterFailoverConfiguration
VMNetworkAdapterVlan
VMProcessor
VMRemoteFx3dVideoAdapter
VMReplication
VMReplicationAuthorizationEntry
VMReplicationServer
VMResourceMetering
VMResourcePool
VMSan
VMSavedState
VMScsiController
VMSnapshot
VMStorage
VMStoragePath
VMSwitch
VMSwitchExtension
VMSwitchExtensionFeature
VMSystemSwitchExtension
VMSystemSwitchExtensionFeature

If you want to know which cmdlet to use to on a object,  search for all commands for a specific noun (object). For example, try this:

PS C:\> Get-Command -Noun VMSnapshot

CommandType Name ModuleName Definition
----------- ---- ---------- ----------
Cmdlet Export-VMSnapshot Hyper-V ...
Cmdlet Get-VMSnapshot Hyper-V ...
Cmdlet Remove-VMSnapshot Hyper-V ...
Cmdlet Rename-VMSnapshot Hyper-V ...
Cmdlet Restore-VMSnapshot Hyper-V ...

For the cmdlets, think of the most logical way to perform an action. The likelihood will be that that is exactly how it's done.

To see more FAQs for Windows, virtualization, SharePoint, System Center, and other solutions where you need help, click at John Savill's FAQs.