本文转载至我爱hick 1、禁止PVS类型桌面注销自动关机

Set-BrokerDesktopGroup -Name "Desktop Group Name" -ShutdownDesktopsAfterUse $False

2、调整交付组默认开启计算机百分比,可用通配符“*”

Set-BrokerDesktopGroup "Desktop Group Name"-PeakBufferSizePercent 100

3、为添加好的托管主机添加网络

Get-Item XDHyp:\HostingUnits\Desktop02 获取托管主机信息以及相应配置格式参数

为托管主机添加网加网络

Add-HypHostingUnitNetwork -NetworkPathXDHyp:\Connections\XS-Cluster02\【Desktop02.network这里是要添加的网络】 -LiteralPath XDHyp:\HostingUnits\Desktop02

4、添加删除托管主机存储

默认存储类型为 OSStorage ,PVD存储类型为:PersonalvdiskStorage

添加存储:Add-HypHostingUnitStorage -LiteralPath XDHyp:\HostingUnits\Desktop01 -StoragePath XDHyp:\HostingUnits\Desktop01\lun01.storage

删除存储:

Remove-HypHostingUnitStorage -LiteralPath XDHyp:\HostingUnits\Desktop01 -StoragePath XDHyp:\HostingUnits\Desktoop\01\lun01.storage

删除PVD类型存储:

Remove-HypHostingUnitStorage -LiteralPath XDHyp:\HostingUnits\Desktop01 -storagetype personalvdiskstorage -StoragePath XDHyp:\HostingUnits\Desktoop\01\lun01.storage

5、更改交付组中桌面显示名称 Get-BrokerDesktopGroup -UID ## | Set-BrokerDesktopGroup -PublishedName "New Delivery Group Name"

6.更改已发布的计算机桌面名称 Get-BrokerDesktopGroup | Select Uid Get-BrokerMachine -DesktopGroupUID ## | Set-BrokerMachine -PublishedName $Null Get-BrokerDesktopGroup -UID ## | Set-BrokerDesktopGroup -PublishedName "New Delivery Group Name"