Get-SCVMMAccessLicense

Get-SCVMMAccessLicense

Gets the VMM server license information.

Syntax

Parameter Set: License
Get-SCVMMAccessLicense -License -VMMServer <ServerConnection> [ <CommonParameters>]

Parameter Set: LicenseBy
Get-SCVMMAccessLicense -LicenseBy <LicenseBy> {ManagementServer | SML | VOSE} -VMMServer <ServerConnection> [ <CommonParameters>]

Detailed Description

The Get-SCVMMAccessLicense cmdlet gets the Virtual Machine Manager (VMM) server license information.

Parameters

-License

Indicates that all available licenses are returned.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-LicenseBy<LicenseBy>

Specifies how VMM is licensed. Valid values are: SML, ManagementServer, VOSE.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

1: Get a list of available licenses for VMM.

This command returns a list of available licenses for the VMM server VMMServer01.

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

2: Get all licenses that have a LicenseBy value of "ManagementServer".

This command gets all management server licenses on VMM server VMMServer01.

PS C:\> Get-SCVMMAccessLicense -VMMServer "VMMServer01.Contoso.com" -LicenseBy "ManagementServer"

3: Get all licenses that have a LicenseBy value of "SML".

This command returns a list of licensed hosts associated with VMM server VMMServer01.

PS C:\> Get-SCVMMAccessLicense -VMMServer "VMMServer01.Contoso.com" -LicenseBy "SML"

4: Get all licenses that have a LicenseBy value of "VOSE".

Returns a list of licensed virtual machines associated with VMM server VMMServer01.

PS C:\> Get-SCVMMAccessLicense -VMMServer "VMMServer01.Contoso.com" -LicenseBy "VOSE"

Register-SCVMMAccessLicense