Copy over registry settings for All Users
I have this application that needs specific preferences set. The preferences only stick with the current user. I found in the registry where the local preferences are located. I want to know if there is a way to copy these registry settings to all the current users and future users?
-
Emily,
I think what you want is to modify it for the default user profile. That way whenever a new user profile is generated it will have that preference set by default.
You can do that by loading the default user hive:
- Open regedit
- Click on HKEY_USERS
- Click on File > Load Hive
- Browse to C:\Users\Default\NTUSER.DAT
- You can use pretty much whatever key name you want but I usually use "DefaultUser"
- Make your changes under the new "HKEY_USERS\DefaultUser" hive
- Unload the hive by clicking on "DefaultUser" then clicking File > Unload Hive
This will affect any new user profile that gets built. One potential issue here is that it won't affect any user profiles that have already been built. In order to modify those you would probably have to loop through each user under HKEY_USERS and modify it there, create a script to modify the current user and place it in the startup folder, clean all user profiles so they have to be rebuilt with the new default profile, etc. Each method has pros and cons so it's kinda up to you how you want to implement it.
-
Below is what I want to import into each user profile in the registry, I'm horrible at scripting. Is there a way to do anything with scans in PDQ? Like, scan to see if the below registry setting is in a user's settings and if it's not can PDQ add it when the user logs on?
[HKEY_USERS\Software\Logishrd\LWS\Preferences]
"MainPosX"=dword:000000dc
"MainPosY"=dword:00000044
"PhotoFolder"="P:/"
"MovieFolder"="P:/"
"MotionFolder"="P:/"
"MyPhotosFolder"="P:/"
"MyVideosFolder"="P:/"
"ShadeOpenBehavior"=dword:00000000
"ShadeLaunchApp"="Motion Detection"
"ShadeCloseBehavior"=dword:00000000
"ShowSysTrayIcon"="true"
"AutoLaunch"="true"
"TopMost"="false"
"AudioChannels"="2"
"RecordQuality"="48000"
"MicLevel"=dword:00000000
"MotDetWithAudio"="true"
"VideoRecordQuality"="100"
"EmailClient"=""
"PhotoEditApp"=""
"VideoEditApp"=""
"CountdownEnabled"="true"
"ShowEMailButton"="false"[HKEY_USERS\Software\Logishrd\LWS\Preferences\Apps]
"YouTube"="false"
"Facebook"="false"
"Twitter"="false" -
I agree with Chris that doing this with a GPP is probably best, as well as implementing this change in the default user profile in your master image so newly provisioned machines get the setting automatically. Is using Group Policy an option in your environment? If not, you'll have to get a bit more creative.
Edit: Just saw your other response.
User Configuration > Preferences > Windows Settings > Registry
Please sign in to leave a comment.
Comments
11 comments