Current and Future Clients/Partners are Welcome.
How I optimize my VDI images
Everyone has a different idea of what an “optimized image" is. Here I’ll lay out what I do to optimize my lab images to limit background noise and unnecessary CPU usage. Generally, I do this same process regardless of what platform I’m using. I’ve pieced this process together from first-hand troubleshooting and seeing some things that others are doing.
Background:
My main image is Windows 10 LTSC 2019 (1809) – I prefer LTSC because there’s less “noise” on it to begin with and I don’t have to deal with feature upgrades being forced eventually.
I use the Citrix Optimizer, really just personal preference which optimizer you use - just use something. :)
Process:
- Install from ISO, defaults, not on a domain or Azure AD – Local account only – Activate if needed
- Run Windows Updates, reboot, rinse and repeat until there are no more updates. Then reboot and check for updates once more to be sure, you might be surprised.
- Install the LW runtime installer package*, reboot/shutdown and take a snapshot
- Run the optimizer tool of your choice and reboot (no snapshot yet)
- In gpedit.msc, Computer Configuration: (Maybe some nice person can turn this into a .REG file)
- Windows Settings, Security Settings, Local Policies, Security Options
- Enable “Domain member: Disable machine account password changes”
- Administrative Templates, Windows Components, Windows Defender Antivirus
- Enable “Turn off Windows Defender Antivirus”
- Administrative Templates, Windows Components, Windows Error Reporting
- Enable “Disable Windows Error Reporting”
- Administrative Templates, Windows Components, Windows Update
- Disable “Configure Automatic Updates”
- Windows Settings, Security Settings, Local Policies, Security Options
- In Regedit, delete the following Key: HKLM\SYSTEM\CurrentControlSet\Services\DiagTrack
- In File Explorer, take ownership of “C:\Windows\SysWOW64\OneDriveSetup.exe”, remove all existing ACL’s and add in only one for Everyone with DENY for Full Control – This seems to stop it from running for each user at each login and from letting Windows “fix” the file. Maybe you want OneDrive, though...?
- In an elevated cmd prompt: ipconfig /release & shutdown -s -t 0
- Take a snapshot
At this point I consider this to be an "optimized image".
*Step 3 needs to be consistent on both your ProfileUnity VDI images as well as the FlexApp Packaging Console. If one has all run-times installed, the other needs them as well. If you have existing packages and install this after, you may need to re-capture those applications. Runtime Installer Package: https://liquidwarelabs.zendesk.com/hc/en-us/articles/360042135011-Runtime-Installer-Package
Comments
-
I have many VMware Horizon clients that are using the Citrix optimizer.
1 -
@Chris_Walker Citrix Optimizer requires a Citrix account to login and download however from what I have seen.
2 -
Step 5 turned into a reg file. Just remove the .txt after download.
1