Set-SCCapabilityProfile
修改功能設定檔的屬性。
Syntax
Set-SCCapabilityProfile
-CapabilityProfile <CapabilityProfile>
-Name <String>
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Set-SCCapabilityProfile
-CapabilityProfile <CapabilityProfile>
[-Description <String>]
[-CPUCountInitial <Int32>]
[-CPUCountMaximum <Int32>]
[-CPUCountMinimum <Int32>]
[-CPUCompatibilityModeValue <Boolean>]
[-CPUCompatibilityModeValueCanChange <Boolean>]
[-OSCompatibilityModeValue <Boolean>]
[-OSCompatibilityModeValueCanChange <Boolean>]
[-MemoryMBInitial <Int32>]
[-MemoryMBMaximum <Int32>]
[-MemoryMBMinimum <Int32>]
[-DynamicMemoryValue <Boolean>]
[-DynamicMemoryValueCanChange <Boolean>]
[-StartupMemoryMBInitial <Int32>]
[-StartupMemoryMBMaximum <Int32>]
[-StartupMemoryMBMinimum <Int32>]
[-MaximumMemoryMBInitial <Int32>]
[-MaximumMemoryMBMaximum <Int32>]
[-MaximumMemoryMBMinimum <Int32>]
[-TargetMemoryBufferPercentInitial <Int32>]
[-TargetMemoryBufferPercentMaximum <Int32>]
[-TargetMemoryBufferPercentMinimum <Int32>]
[-VirtualDVDDriveCountInitial <Int32>]
[-VirtualDVDDriveCountMaximum <Int32>]
[-VirtualDVDDriveCountMinimum <Int32>]
[-SharedDVDImageFileValue <Boolean>]
[-SharedDVDImageFileValueCanChange <Boolean>]
[-VirtualHardDiskCountInitial <Int32>]
[-VirtualHardDiskCountMaximum <Int32>]
[-VirtualHardDiskCountMinimum <Int32>]
[-DifferencingVirtualHardDiskValue <Boolean>]
[-DifferencingVirtualHardDiskValueCanChange <Boolean>]
[-DynamicVirtualHardDiskValue <Boolean>]
[-DynamicVirtualHardDiskValueCanChange <Boolean>]
[-FixedVirtualHardDiskValue <Boolean>]
[-FixedVirtualHardDiskValueCanChange <Boolean>]
[-VirtualHardDiskSizeMBInitial <Int32>]
[-VirtualHardDiskSizeMBMaximum <Int32>]
[-VirtualHardDiskSizeMBMinimum <Int32>]
[-NewDiskStorageClassificationValue <Guid>]
[-ExistDiskStorageClassificationValue <Guid>]
[-VirtualNetworkAdapterCountInitial <Int32>]
[-VirtualNetworkAdapterCountMaximum <Int32>]
[-VirtualNetworkAdapterCountMinimum <Int32>]
[-LogicalNetworkValue <Guid>]
[-NetworkOptimizationValue <Boolean>]
[-NetworkOptimizationValueCanChange <Boolean>]
[-VMHighlyAvailableValue <Boolean>]
[-VMHighlyAvailableValueCanChange <Boolean>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
Set-SCCapabilityProfile Cmdlet 會修改功能設定檔物件的屬性。
如需建立功能設定檔的相關資訊,請輸入 Get-Help New-SCCapabilityProfile -Detailed
。
範例
範例 1:修改功能設定檔的預設虛擬硬碟設定
PS C:\> $CapabilityProfile = Get-SCCapabilityProfile -Name "CapabilityProf01"
PS C:\> Set-SCCapabilityProfile -CapabilityProfile $CapabilityProfile -VirtualHardDiskCountMinimum 1 -VirtualHardDiskCountMaximum 8 -VirtualHardDiskSizeMBMaximum 256000
第一個命令會取得名為 CapabilityProf01 的功能設定檔物件,並將物件儲存在$CapabilityProfile變數中。
第二個命令會將虛擬硬碟至少設定為 1、虛擬硬碟上限設定為 8,而虛擬硬碟大小上限為 25600 MB, (250 GB) ,用於儲存在 $CapabilityProfile 的功能設定檔。
參數
-CapabilityProfile
指定功能設定檔物件。
Type: | CapabilityProfile |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-CPUCompatibilityModeValue
指出是否啟用處理器相容性模式。 當設定為 $True 時,Virtual Machine Manager (VMM) 會限制虛擬機器可以使用的處理器功能,以改善與不同處理器版本的相容性。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CPUCompatibilityModeValueCanChange
指出是否可以更新 CPU 相容性模式的值。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CPUCountInitial
指定虛擬機器在私人雲端中部署時將擁有的初始處理器數目。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CPUCountMaximum
指定在私人雲端中部署的虛擬機器可以擁有的最大處理器數目。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CPUCountMinimum
指定在私人雲端中部署的虛擬機器可以擁有的最小處理器數目。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
指出指定之物件的描述。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DifferencingVirtualHardDiskValue
指出是否允許差異磁片。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DifferencingVirtualHardDiskValueCanChange
指出是否可以更新差異磁片的值。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DynamicMemoryValue
指出是否啟用動態記憶體。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DynamicMemoryValueCanChange
指出是否可以更新動態記憶體的值。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DynamicVirtualHardDiskValue
指出是否允許動態虛擬硬碟。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DynamicVirtualHardDiskValueCanChange
指出是否可以更新動態虛擬硬碟的值。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ExistDiskStorageClassificationValue
指定 GUID。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FixedVirtualHardDiskValue
指出是否允許固定虛擬硬碟。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FixedVirtualHardDiskValueCanChange
指出是否可以更新固定虛擬硬碟的值。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
指定追蹤工作進度,並將工作進度存放在這個參數命名的變數中。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LogicalNetworkValue
指定 GUID。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MaximumMemoryMBInitial
指定在私人雲端中部署時配置給虛擬機器的初始最大記憶體數量,以 MB 為單位 (MB) 。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MaximumMemoryMBMaximum
指定可以配置給虛擬機器的最大記憶體數量,以 MB (MB) 為單位。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MaximumMemoryMBMinimum
指定可以配置給虛擬機器的最小記憶體數量,以 MB (MB) 為單位。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MemoryMBInitial
指定在私人雲端中部署時配置給虛擬機器的初始記憶體數量,以 MB 為單位 (MB) 。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MemoryMBMaximum
指定可以配置給虛擬機器的記憶體數量上限,以 MB 為單位 (MB) 。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MemoryMBMinimum
指定可以配置給虛擬機器的最小記憶體數量,以 MB 為單位 (MB) 。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定 VMM 物件的名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NetworkOptimizationValue
指出是否啟用網路優化。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NetworkOptimizationValueCanChange
指出是否可以更新網路優化的值。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NewDiskStorageClassificationValue
指定 GUID。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OSCompatibilityModeValue
指出是否啟用作業系統相容性模式。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OSCompatibilityModeValueCanChange
指出是否可以更新作業系統相容性的值。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
指定觸發此動作之 PRO 提示 (PRO 提示的識別碼) 。 此參數可讓您稽核 PRO 秘訣。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
表示作業會以非同步方式執行,讓控制項立即返回命令殼層。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SharedDVDImageFileValue
指出是否啟用共用 DVD 影像模式。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SharedDVDImageFileValueCanChange
指出是否可以更新共用 DVD 影像模式的值。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StartupMemoryMBInitial
指定在啟動時配置給虛擬機器的初始記憶體數量,以 MB 為單位 (MB) 。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StartupMemoryMBMaximum
指定在啟動時配置給虛擬機器的記憶體數量上限,以 MB (MB) 為單位。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StartupMemoryMBMinimum
指定在啟動時配置給虛擬機器的最小記憶體數量,以 MB (MB) 為單位。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TargetMemoryBufferPercentInitial
指定主機應該嘗試保留為緩衝區之虛擬機器目前記憶體配置上方的記憶體初始百分比。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TargetMemoryBufferPercentMaximum
指定主機應該嘗試保留為緩衝區之虛擬機器目前記憶體配置上方的最大記憶體百分比。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TargetMemoryBufferPercentMinimum
指定主機應該嘗試保留為緩衝區之虛擬機器目前記憶體配置上方記憶體的最小百分比。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualDVDDriveCountInitial
指定在私人雲端中部署時連結至虛擬機器的初始 DVD 磁片磁碟機數目。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualDVDDriveCountMaximum
指定可連結至私人雲端中部署之虛擬機器的 DVD 磁片磁碟機數目上限。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualDVDDriveCountMinimum
指定可連結至私人雲端中部署之虛擬機器的 DVD 磁片磁碟機數目下限。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualHardDiskCountInitial
指定在私人雲端中部署時,連結至虛擬機器的初始虛擬硬碟數目。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualHardDiskCountMaximum
指定可連結至私人雲端中部署之虛擬機器的虛擬硬碟數目上限。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualHardDiskCountMinimum
指定可連結至私人雲端中部署之虛擬機器的虛擬硬碟數目下限。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualHardDiskSizeMBInitial
指定在私人雲端部署時,虛擬機器的初始硬碟大小,以 MB (MB) 為單位。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualHardDiskSizeMBMaximum
指定在私人雲端中部署的虛擬機器允許的虛擬硬碟大小上限,以 MB 為單位 (MB) 。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualHardDiskSizeMBMinimum
指定私人雲端中部署虛擬機器的最小虛擬硬碟大小,以 MB 為單位 (MB) 。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualNetworkAdapterCountInitial
指定在私人雲端中部署時附加至虛擬機器的初始虛擬網路介面卡數目。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualNetworkAdapterCountMaximum
指定可連結至私人雲端中部署之虛擬機器的虛擬網路介面卡數目上限。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualNetworkAdapterCountMinimum
指定可連結至私人雲端中部署之虛擬機器的虛擬網路介面卡數目下限。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHighlyAvailableValue
指出已部署的虛擬機器是否為高可用性。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHighlyAvailableValueCanChange
指出是否可以更新指出虛擬機器高可用性狀態的值。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
備註
- 需要 VMM 功能設定檔物件,可使用 Get-SCCapabilityProfile Cmdlet 來擷取。