Set-SCCapabilityProfile
修改功能配置文件的属性。
语法
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>]
说明
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 提示) 的性能和资源优化提示的 ID。 此参数允许审核 PRO 提示。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
指示作业异步运行,以便控件立即返回到命令 shell。
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 检索该对象。