Copy over registry settings for All Users

Comments

11 comments

  • Luke Nichols

    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.

    1
    Comment actions Permalink
  • Emily Dullum

    This is good information, thank you.  I was trying to avoid having users re-create their profiles.  Otherwise I will just re-image the machine and set the preferences in the app before sysprepping it.

    1
    Comment actions Permalink
  • Luke Nichols

    In that case I would try a solution like iterating through each user's profile in HKEY_USERS to hit every existing profile or using a startup script. You could also try a RunOnce registry entry so that it will run once per user profile.

    2
    Comment actions Permalink
  • Emily Dullum

    Oh boy, this might be out of my realm.  Tell me more about this RunOnce registry entry?

    1
    Comment actions Permalink
  • Emily Dullum

    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"

    1
    Comment actions Permalink
  • Chris Lambert

    This is a perfect candidate for using Group Policy Preferences, if you are using Active Directory that is.

    1
    Comment actions Permalink
  • Emily Dullum

    YES!

    I've started a new policy.  Is this going to be a user or computer policy? And will I use Preferences, Windows Settings, Registry?

    1
    Comment actions Permalink
  • Luke Nichols

    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

    1
    Comment actions Permalink
  • Emily Dullum

    Ok I'm there.  I'll see what happens. Thank you for all your help guys!

    0
    Comment actions Permalink
  • Emily Dullum

    Sorry...I'm such a noob at this.  Is this what I want to do? I did the registry wizard and connected to the computer that has the registry changes I want to add to the policy.  I set the .DEFAULT user, but how do I get this setting on all users? 

    0
    Comment actions Permalink
  • Luke Nichols

    Emily,

    You don't want to apply those settings to "HKEY_USERS\.Default", you want to apply them to "HKEY_CURRENT_USER". That way it will run at login for all users.

    1
    Comment actions Permalink

Please sign in to leave a comment.