Header Ads

Header ADS

Sealing a PVS/MCS vDisk

The following steps were obtained from numerous sources.
  1. Chkdisk c:\ and reboot (must have)
  2. 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
  3. 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.
  4. Run slmgr.vbs /dlv
  5. If MS DTS is installed, run msdtc.exe -reset
  6. If MSMQ is install, clear the cache:
          c:\> net stop mqac
          c:\> net stop msmq
  7. Run Disk Cleanup on c:\
  8. Delete local profiles 
  9. Stop Citrix Profile Manager Service
  10. Delete Citrix Profile Manager logs
  11. Generalize your antivirus
  12. Generalize SCOM, SCCM, Tivoli, etc.
  13. Generalize AppSense, RES, etc.
  14. Do a scan (*don't bother*)
  15. Stop the DHCP Client service.
  16. 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=""
  17. Defrag the VM.
  18. Defrag the VHD by mounting it
Scripted tool:  http://www.loginconsultants.com/de/news/tipps-tricks/item/base-image-script-framework-bis-f?category_id=180

Sources:

No comments

Powered by Blogger.