This post will guide you through how to make user settings apply to all users who login to the machine
We do this by temporarily mounting the Default User hive and injecting the required settings into the appropriate place.
Mount the Default User Hive
Add a new “Run Command Line” step, give it a suitable name and then add the following command line:
1 |
cmd.exe /c reg.exe load HKU\DU C:\users\default\ntuser.dat |
Make note of the “HKU\DU” portion – this will replace all references to HKU or HKEY_CURRENT_USER and ensures your settings are applied correctly
Add Your Registry Keys
Here will will add the registry setting that will hide the People Icon from the Taskbar
Hide People Button
So first, we need to add another “Run Command Line” step, name it – in the example above I named it “Modify Registry – Hide People Button”
Next, in the command line enter:
1 |
cmd /c reg add HKU\DU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People /v "PeopleBand" /t REG_DWORD /d "0" /f |
Done!
Repeat all this until you have added all your registry keys
Other settings I use are:
Default LockScreen
This only works on Server 2016 and Windows 10 Enterprise or Education Editions
1 |
cmd /c reg add "HKU\DU\SOFTWARE\policies\Microsoft\Windows\Personalization" /v "LockScreenImage" /t REG_SZ /d "<PATH>\lockscreen.jpg" /f |
Just replace “<PATH>\lockscreen.jpg” with the path to your desired lockscreen file.
Remove 3D Builder Folder
1 |
cmd /c reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A} /f |
(Notice that this is in the “Local Machine” portion of the Registry, but works just the same here!
Show the Search Icon:
1 |
cmd /c reg add HKU\DU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search /v "SearchboxTaskbarMode" /t REG_DWORD /d "1" /f |
Set Powershell on Win X (Right clicking the start menu)
1 |
cmd /c reg add HKU\DU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v "DontUsePowerShellOnWinX" /t REG_DWORD /d "0" /f |
(Though I think this one is redundant now since windows 10 v1709 – but still valid for Server 2012 & 2016)
Set Cortana Voice (eg UK Susan)
Change this to suit your language – and ensure you’ve installed the correct Language pack and additions!
1 |
reg add "HKU\DU\SOFTWARE\Microsoft\Speech_OneCore\Settings\TextToSpeech" /v "Voice" /t REG_SZ /d "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech_OneCore\Voices\Tokens\MSTTS_V110_enGB_SusanM" /f |
Unmount the Default User Hive
This is similar to the “Mount the Default Hive” step, but with this command line:
1 |
cmd.exe /c reg.exe unload HKU\DU |
Thanks for the post really handy. Whats the reg edit to remove the 3d builder folder?
Updated the post now for you – I’m working to get all the task sequence steps added as quickly as I can 🙂
Really appreciate it. Thanks again!
Thanks Craig – Do you know of a way to set a custom desktop wallpaper as part of this process?
Hi Kym, This should help:
https://blog.gattancha.co.uk/osd-enforce-default-user-background/