Welcome to my VMware Horizon series. In this sub-session I will describe how I generalized my Windows 2012R2 Server RDS
I’m now ready to Sysprep and create a mandatory profile. Before I sysprep my image I need to disable Password Complexity Requirements on Windows Server.
From gpedit.msc I change the local policy setting
Now it’s time to sysprep the image. First, I will create an answer-file for sysprep, unattend.xlm. I have modified mine as follows. A sample file is attached at the end of this page.
I copy unattend.xml to C:\Windows\System32\Sysprep
Since this is a 2012R2-server I need to add a registry entry for UseProfilePathExtensionVersion: “reg add “HKLM\System\CurrentControlSet\Services\ProfSvc\Parameters” /v UseProfilePathExtensionVersion /t REG_DWORD /d 1 /f”
From an administrative cmd-prompt, I start sysprepping by running this cmd: “c:\windows\system32\sysprep\sysprep.exe /oobe /generalize /mode:vm /unattend:c:\windows\system32\sysprep\unattend.xml /reboot”
Once my VM is restarted, I will create a mandatory profile. In Windows Explorer, Right-click “This PC” and click Properties.
Next I select Advanced System Settings
I Click “Settings” under User Profiles
Select Default Profile, Copy To…
Copy profile to “C:\Users\Mandatory.v4” and click “Change” to set permissions
Select the user group: “Authenticated Users”
Back in the User Profile dialogue box, delete the Account Unknown-profile
Click OK to exit User Profiles windows
Back in Windows Explorer, I browse to C:\Users\Mandatory.v4 folder, choose view “Hidden Items”
I rename the file ntuser.dat to ntuser.man
Next I choose to view protected operating system files from View Options
I delete all ntuser*.* files except ntuser.ini and ntuser.man
Lastly, I revert changes in the View Options I made above.
Unattend sample file: Unattend_xml
PS: Beware of formatting when doing copy/paste!
That concludes my session about how I generalized and prepared Windows in my template. My next logical step will be applications and agents, covered here: VMware Horizon – Setup 2012R2 RDS Template – Install Agents and applications
Disclaimer: Every tips/tricks/posting I have published here, is tried and tested in different it-solutions. It is not guaranteed to work everywhere, but is meant as a tip for other users out there. Remember, Google is your friend and don’t be afraid to steal with pride! Feel free to comment below as needed.