Get-SCVMMAccessLicense
取得 VMM 伺服器授權資訊。
語法
Get-SCVMMAccessLicense
-VMMServer <ServerConnection>
[-License]
[<CommonParameters>]
Get-SCVMMAccessLicense
-VMMServer <ServerConnection>
-LicenseBy <LicenseBy>
[<CommonParameters>]
Description
Get-SCVMMAccessLicense Cmdlet 會取得 Virtual Machine Manager (VMM) 伺服器授權資訊。
範例
範例 1:取得 VMM 可用授權的清單
PS C:\> Get-SCVMMAccessLicense -VMMServer "VMMServer01.Contoso.com" -License
此命令會傳回 VMM 伺服器 VMMServer01 的可用授權清單。
範例 2:取得具有 “ManagementServer” 的 LicenseBy 值的所有授權
PS C:\> Get-SCVMMAccessLicense -VMMServer "VMMServer01.Contoso.com" -LicenseBy "ManagementServer"
此命令會取得 VMM 伺服器 VMMServer01 上的所有管理伺服器授權。
範例 3:取得具有 “SML” 的 LicenseBy 值的所有授權
PS C:\> Get-SCVMMAccessLicense -VMMServer "VMMServer01.Contoso.com" -LicenseBy "SML"
此命令會傳回與 VMM 伺服器 VMMServer01 相關聯的授權主機清單。
範例 4:取得具有 「VOSE」 值的所有授權
PS C:\> Get-SCVMMAccessLicense -VMMServer "VMMServer01.Contoso.com" -LicenseBy "VOSE"
此命令會傳回與 VMM 伺服器 VMMServer01 相關聯的授權虛擬機清單。
參數
-License
表示傳回所有可用的授權。
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-LicenseBy
指定 VMM 的授權方式。 此參數可接受的值為:
- SML
- ManagementServer
- VOSE
類型: | LicenseBy |
接受的值: | SML, ManagementServer, VOSE |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-VMMServer
指定 VMM 伺服器物件。
類型: | ServerConnection |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |