Creating Windows 10 Gold Image

I have been meaning to make a post about creating a windows 10 Golden image. Finally I got the chance to do that. Below there is a video you can watch ( I am new at making videos so if you want me to make it again, I will be more than happy to). 

Sources:

https://www.ituda.com/

https://techzone.vmware.com/creating-optimized-windows-image-vmware-horizon-virtual-desktop#934643

https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-vdi-recommendations

Create a New VM in vCenter.

Go to VM Options – Edit Configurations – add devices.hotplug false

https://kb.vmware.com/s/article/1012225

Check the Next Time the MV boots. Force it into BIOS.

Check your settings

In the Bios, go to Advanced

Disable I/O Devices.

Boot from windows 10 iso and press shift 10 to get the CMD and type in diskpart.

  • select disk 0
    • create partition primary
    • exit

Select Drive and install windows

After windows has installed, press shift + f3 enter audit mode.

Press cancel to the System Preparation box every time you reboot until ready to seal the image.

Install VMware tools.

Install windows updates and your software/applications.

Open turn windows features on or off.

Check .NET Framework 3.5.

Uncheck Print and Documents Services.

Click OK.

Enable verbose status and Run disk cleaner.

  • REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v verbosestatus /t REG_DWORD /d 1 /f
  • c:\windows\system32\cleanmgr /sageset:1 – Select the options you want to delete

Credits – https://www.ituda.com/vmware-horizon-view-windows-10-golden-image-creation/ –

Open gpedit.msc and enable/disable settings you dont need.

Disable hardware acceleration on Chrome and IE.

Create a power plan.

Desktop mode.

Turn off firewall if necessary.

Install printers.

Run thr Ngen tool.

https://techzone.vmware.com/creating-optimized-windows-image-vmware-horizon-virtual-desktop

  • cd Windows\Microsoft.NET\Framework\v4.x.x\
  • ngen executequeueditems
blob:file:///6d82408e-a6ba-4e0a-b251-d205c2e10da9

Run the Dism tool.

dism /online /cleanup-image /startcomponentcleanup /resetbase

for more info about the Dism tool go to https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder

Remove unwanted built-in apps.

Set default applications for all users.

  • Dism /Online /Export-DefaultAppAssociations:c:\appAssoc.xml
  • Open the exported file “c:\appAssoc.xml” in notepad and copy its contents
  • Open file C:\Windows\System32\OEMDefaultAssociations.xml in notepad – select all and paste contents from “c:\appAssoc.xml” and save

Mount windows 10 installation ISO.

Create unattend (copyprofile) file using Windows SIM and it should look like the one below.

<?xml version=”1.0″ encoding=”utf-8″?>

<unattend xmlns=”urn:schemas-microsoft-com:unattend”>

<settings pass=”specialize”>

<component name=”Microsoft-Windows-Shell-Setup” processorArchitecture=”amd64″ publicKeyToken=”31bf3856ad364e35″ language=”neutral” versionScope=”nonSxS” xmlns:wcm=”http://schemas.microsoft.com/WMIConfig/2002/State” xmlns:xsi=”[http://www.w3.org/2001/XMLSchema-instance”&gt](http://www.w3.org/2001/XMLSchema-instance”&gt)_; _

<CopyProfile>true</CopyProfile>

</component>

</settings>

<cpi:offlineImage cpi:source=”wim:D:/install.wim#Windows 10 Enterprise” xmlns:cpi=”urn:schemas-microsoft-com:cpi” />

</unattend>

Open a poweshell window and run.

  • cd C:\Windows\System32\Sysprep\
  • Sysprep /generalize /oobe /shutdown /unattend:C:\CopyProfile.xml

Once the vm has rebooted, you will need to create a new user.

and since we customized the Default profile, every new user should get the same desktop customization.

And now we Optimize and Install View,UEM Agents.

And we run the VDIcleanup script provided by Lieven D’hoore. @ https://www.ituda.com/vmware-horizon-view-recomposing-dont-forget-to-cleanup-after-you-finished/

That’s It.

This Post Has 4 Comments

  1. Great article, could you post somewhere the copyprofile.xml file, copy and paste not working

    rgds

    Andres

  2. thanks Oscar! great work

    1. Sure, thanks!

Leave a Reply

Close Menu