Sealing a PVS/MCS vDisk
The following steps were obtained from numerous sources.
Sources:
- Chkdisk c:\ and reboot (must have)
- Clean-up event logs (if not redirected to the cache disk)
Powershell: Get-EventLog -List | %{$_.clear()}
CommandLine:
wevtutil.exe cl system
wevtutil.exe cl application - If vSphere is used, delete ghost NICs:
CommandLine:
c:\> set devmgr_show_nonpresent_devices=1
c:\> start devmgmt.msc
In the view menu, select Show Hidden Devices. - Run slmgr.vbs /dlv
- If MS DTS is installed, run msdtc.exe -reset
- If MSMQ is install, clear the cache:
c:\> net stop mqac
c:\> net stop msmq - Run Disk Cleanup on c:\
- Delete local profiles
- Stop Citrix Profile Manager Service
- Delete Citrix Profile Manager logs
- Generalize your antivirus
- Generalize SCOM, SCCM, Tivoli, etc.
- Generalize AppSense, RES, etc.
- Do a scan (*don't bother*)
- Stop the DHCP Client service.
- Clear the values in the DHCP reg keys to prevent erratic boot errors:
[HKLM\System\CurrentControlSet\Services\Tcpip\Parameters]NameServer
[HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\{GUID}]
NameServer=""
Domain=""
DhcpIPAddress=""
DhcpSubnetMask=""
DhcpServer=""
DhcpNameServer=""
DhcpDefaultGateway="" - Defrag the VM.
- Defrag the VHD by mounting it
Sources:
- https://www.citrix.com/blogs/2015/11/16/sealing-steps-after-updating-a-vdisk/
- https://www.citrix.com/blogs/2015/09/29/pvs-target-devices-the-blue-screen-of-death-rest-easy-we-can-fix-that/
No comments