Export (0) Print
Expand All

Connecting to the Virtual Machine Manager Server

Updated: October 21, 2008

Applies To: Virtual Machine Manager 2008, Virtual Machine Manager 2008 R2, Virtual Machine Manager 2008 R2 SP1

You can display Help about System Center Virtual Machine Manager (VMM) cmdlets at any time in the Windows PowerShell – Virtual Machine Manager command shell. However, you can use the VMM cmdlets only after you connect to a VMM server.

Connecting to a VMM server retrieves the server object from the VMM database and gives you access to all the other objects in the database. You retain access to the objects in the database until you close the server connection, which you can do by closing the VMM command shell.

To connect to the Virtual Machine Manager server

  • Type the following command, and then review the output. Replace the placeholders with your own server and domain names:

    Get-VMMServer –Computername "<YourVMMServerName>.<YourDomainName>.com"

When the command has successfully completed, the server object is returned. The command shell displays information about the properties of the VMM server object. And, you are connected to the VMM database that is provided by the VMM server.

If a command does not work in the command shell, run the command to connect to the VMM server again. If you encounter problems, open the Services tool in Administrative Tools, and then restart the VMM service. Or, restart the service in the command shell. For information about how to restart a service in the command shell, type Get-Help Restart-Service -detailed.

If you are working on the server on which VMM is installed, you can substitute "localhost" for the fully qualified domain name (FQDN). You cannot do this if you are accessing the server remotely.

To connect to Virtual Machine Manager if it is installed on the local host

  • Type the following command, and then review its output:

    Get-VMMServer –Computername localhost

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft