Share via


Get-SCVirtualizationManager

Gets a VMware vCenter Server object managed by VMM.

Syntax

Default (Default)

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServer

Specifies a VMM server object.

Parameter properties

Type:ServerConnection
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

VirtualizationManager

This cmdlet returns a VirtualizationManager object.