question

JohanDahlin-1749 avatar image
0 Votes"
JohanDahlin-1749 asked DanFlynn-1516 commented

How to set default registry value for all users in reference PC

Using Deployment Workbench (ver 6.3.8456.1)
I created a Deployment share to install Window 10,
and the Task sequence does a lot of things.
Installing applications, adding computer settings, Global Policy settings etc

It creates 2 users: admin and a non admin user.

Now I like to set registry setting for both users.
Not just for admin user.

But the result of the registry script that are ran is that only the admin user registry settings are changed.

-Is there a simple way to also set registry values for non admin users?

For example:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows
MenuDropAlignment 0

(Set MenuDropAlignment to Left hand for all users)


best regards

JD



windows-10-setup
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@JohanDahlin-1749

We use the following PowerShell script , very simple it just loads the default user registry hive then sets the registry key you want them unloads it. Just create the script and import as an application in MDT.

MDT application quite install command - "powershell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -file scriptname.ps1)"


Loan Default User Profile

REG LOAD "HKU\Default" $env:SystemDrive\Users\Default\NTUSER.DAT

Changes to Default User Registry

REG ADD "HKU\Default\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows" /v MenuDropAlignment /t REG_DWORD /d 0 /f

Unload NTuser.dat

REG UNLOAD "HKEY_USERS\Default"


0 Votes 0 ·
TKujala avatar image
0 Votes"
TKujala answered

Hi @JohanDahlin-1749,

I think the easiest way is to use the Group Policy objects for adding registry keys.

You can use a security filtering for applying values for certain users.

Deploy a registry key via group policy.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KapilArya avatar image
0 Votes"
KapilArya answered

Hello,

You can use Group Policy to accomplish such deployment.

See steps here to deploy a registry key using Group Policy:

https://www.kapilarya.com/deploy-a-registry-key-using-group-policy

Hope this helps!

Note: Included link in this reply refers to blog post by a trusted Microsoft MVP.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JoyQiao-MSFT avatar image
0 Votes"
JoyQiao-MSFT answered JoyQiao-MSFT commented

Hi,

We recommend to create a logon script through Group Policy Object after deploy client computers. It would be more convenient to apply.

Here is a link for reference.

Step by Step How to Configuring Scripts with GPOs in Windows Server 2016

Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

Bests,

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Any update?

Bests,

0 Votes 0 ·