Get-SCVirtualizationManager

Gets a VMware vCenter Server object managed by VMM.

Syntax

Get-SCVirtualizationManager
   [-VMMServer <ServerConnection>]
   [[-ComputerName] <String>]
   [<CommonParameters>]

Description

The Get-SCVirtualizationManager cmdlet gets one or VMware vCenter Server objects managed by Virtual Machine Manager (VMM). A vCenter Server is a virtualization manager that typically manages ESX hosts and virtual machines deployed on those hosts.

If a vCenter Server is connected to VMM, you can use this cmdlet to view the properties of the vCenter Server object or to store it in a variable for use by other cmdlets.

Examples

Example 1: Display information about each VMware vCenter Server managed by VMM

PS C:\> Get-SCVirtualizationManager -VMMServer "VMMServer01.Contoso.com"

This command retrieves all virtualization manager objects currently associated with VMM from VMMServer01 and displays information about the returned objects.

Example 2: Get a specific VMware vCenter Server managed by VMM

PS C:\> Get-SCVirtualizationManager -VMMServer "VMMServer01.Contoso.com" -ComputerName "vCenterServer02.Contoso.com"

This command gets the vCenter Server object named VirtMgrServer02 and displays information about the returned object.

Example 3: Get all VMware vCenter Servers that match specified criteria

PS C:\> $vCenterServers = Get-SCVirtualizationManager -VMMServer "VMMServer01.Contoso.com" | where {$_.Name -match "Server"}
PS C:\> $vCenterServers

The first command gets all virtualization manager objects whose name includes the string "Server" and stores the returned objects in the $vCenterServers array.

The second command displays information about each vCenter Server object.

Parameters

-ComputerName

Specifies the name of a computer that VMM can uniquely identify on your network. The acceptable values for this parameter are:

  • FQDN
  • IPv4 or IPv6 address
  • NetBIOS name
Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Outputs

VirtualizationManager

This cmdlet returns a VirtualizationManager object.