This recipe will show you how to find the VMM PowerShell command to automate tasks in VMM. The Get-Help
cmdlet not only displays information about the cmdlet, but it also displays references, examples of usage, and notes.
Start the VMM PowerShell command with administrator rights. For more information, refer to the Introducing VMM PowerShell recipe in this chapter.
Help topics have been provided for each VMM PowerShell cmdlet, including general examples.
To display a list of all the VMM cmdlets, start the VMM PowerShell and use the Get-Command
cmdlet:
PS c:\>Get-Command -CommandType Cmdlet
You can also use Get-Command
to view all VMM cmdlets that contain specific nouns or verbs, for example, all related SCCloud
commands:
PS C:\>Get-Command -Noun SCCloud
The result of this command is shown in the following screenshot: