Compartilhar via


Using the Windows PowerShell - VMM Command Shell

Aplica-se a: Virtual Machine Manager 2008, Virtual Machine Manager 2008 R2, Virtual Machine Manager 2008 R2 SP1

All actions in Virtual Machine Manager are performed by cmdlets in the Windows PowerShell - Virtual Machine Manager command shell. Therefore, any task that you can perform by using the VMM Administrator Console, you can also perform at the command line or by creating a Windows PowerShell script.

Since most administrators prefer to use a console for some tasks and prefer to create scripts for other tasks or perform the tasks from the command line, the VMM Administrator Console includes features that help you switch between the two methods:

  • The Summary page of each wizard contains a View Script button that displays the Windows PowerShell cmdlets that the wizard will use to create and configure the new object based on your specifications. You can copy the cmdlets to use in creating Windows PowerShell scripts.

  • If you store your Windows PowerShell version 1 scripts in the VMM library, you can view, edit, or run the script in Library view. For more information, see Viewing and Running Windows PowerShell Scripts.

    Dica

    If the scripts in your library are not signed, and your computer has a policy to only run signed scripts, you will not be able to run scripts from the library. For details about script signing see About_signing (https://go.microsoft.com/fwlink/?LinkId=119744) in Windows PowerShell Help, or, in Windows PowerShell, type the following to view Help: Get-Help about_Signing. If you are unable to sign scripts, you can change the policy on your computer by using the Set-ExecutionPolicy cmdlet in Windows PowerShell.

For more information about the Windows PowerShell - Virtual Machine Manager command shell, see Scripting (https://go.microsoft.com/fwlink/?LinkId=110911) in the VMM TechNet Library.

Consulte Também

Outros Recursos

Getting Started Using Virtual Machine Manager