Examples of Typical Administrative Tasks at the Command Line
Any Virtual Machine Manager task that you can perform by using the Virtual Machine Manager Administrator Console can also be done at the command line by using the Windows PowerShell – Virtual Machine Manager command shell.
The examples in this section, which are similar to the command-line help topics available in the Virtual Machine Manager command shell, illustrate how to use the command line for a number of common administrative tasks in Virtual Machine Manager. The help topics that you can access from the command line contain from 1–5 examples for each cmdlet and include a total of nearly 300 examples.
The examples in this section assume that you have installed the Administrator Console (and thus the Windows PowerShell – Virtual Machine Manager command shell) on your Virtual Machine Manager server.
The topics in this section use the same format that the examples in the command-line help use:
- Example name.
- A series of commands that you type interactively at the command prompt.
- An explanation for each command line in an example that contains multiple command lines.
Warning
The command-line examples in this section are independent of each other and do not constitute an integrated scenario. The purpose of these examples is to introduce you to using the command shell to perform common administrative tasks. You might need to perform additional tasks to complete some of these examples successfully.
To learn more about the Virtual Machine Manager command shell, see the Virtual Machine Manager Scripting Guide at https://go.microsoft.com/fwlink?LinkID=99091.
In This Section
- How to Add Hosts and Library Servers: Command-Line Examples
Explains how to add servers that function as hosts for virtual machines or as library servers for storing library resources.
- How to Create Library Resources: Command-Line Examples
Explains how to create several types of Virtual Machine Manager resources that you can store in the library.
- How to Deploy or Store a Virtual Machine and Find a Suitable Host: Command-Line Examples
Explains how to deploy a new virtual machine on a host, how to store a virtual machine in the library, and how to determine the suitability of a given server as host for a specific virtual machine.
- How to Enable Self-Service Users: Command-Line Examples
Explains how to add a Web server to act as a portal that self-service users can use to create and manage their own virtual machines and how to create a policy that governs what self-service users can do.