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

Creating a script from VMM wizards


You can use the VMM console to help you with the PowerShell script to automate tasks.

Getting the script from a previous task that was executed in the VMM console will save you time when working with scripts. Save the script, then personalize it to make it generic. Every task that is created in VMM can be scripted.

How to do it...

You can create a script from one of the VMM wizards. In this recipe, we will create a script based on how a hardware profile is created. Carry out the following steps in order to do so:

  1. Connect to the VMM 2012 R2 console using the VMM admin account that was created previously (lab\vmm-admin).

  2. On the left-bottom pane, click on the Library workspace, expand Profiles on the left-hand side pane, and then click on Hardware Profiles.

  3. Select and right-click on Create Hardware Profile.

  4. In the New Hardware Profile dialog box, on the General page, type in the hardware profile name, for example, 1 vCPU Server.

  5. Click on Hardware Profile on the left...