Book Image

System Center 2012 R2 Virtual Machine Manager Cookbook - Second Edition

By : Edvaldo Alessandro Cardoso Sobrinho, EDVALDO ALESSANDRO CARDOSO
Book Image

System Center 2012 R2 Virtual Machine Manager Cookbook - Second Edition

By: Edvaldo Alessandro Cardoso Sobrinho, EDVALDO ALESSANDRO CARDOSO

Overview of this book

Table of Contents (18 chapters)
System Center 2012 R2 Virtual Machine Manager Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Finding the command to automate tasks in VMM


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.

Getting ready

Start the VMM PowerShell command with administrator rights. For more information, refer to the Introducing VMM PowerShell recipe in this chapter.

How to do it...

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:

Using the Get-Help cmdlet

To get more specific help, you can use the Get-Help cmdlet. For example,...