Two Registry Settings in Default User Profile Driving Me CRAZY!!!!!!!


  • I'm modifying the 'Default' user profile on a machine that is currently in a workgroup, not a domain, by mounting the 'Default' account's NTUSER.DAT hive onto HKLM as HKLM\Test.  I then run a .reg file that injects a number of registry changes into the mounted hive and all of them stick except for two - AlwaysShowMenus and Hidden (Show Hidden Files and Folders).

    The relevant part of my registry script is such:


    Windows Registry Editor Version 5.00

    ;Set Windows Explorer Settings

    ;Also tried setting the below values with no luck :(

    ;Windows Explorer Setting - Always Show Menus - Tried Also Modifying This Value But Didn't work

    ;Windows Explorer Setting - Show Hidden Files and Folders - Tried Also Modifying This Value But Didn't work

    ;Windows Explorer Setting - Show Hidden Files and Folders - Tried Also Modifying This Value But Didn't work


    Here's the oddest part.  If I create a local profile while the machine is still in a workgroup, the settings all get applied.  But if I join the machine to the domain and log in as a domain user, the AlwaysShowMenus and Hidden keys switch back to dword:00000000. I thought maybe domain group policy was at play so I tried changing the settings back to what I set them to in my .reg file (dword:00000001) then rebooting as well as running a gpupdate /force, but they stayed dword:00000001.

    Does anyone know where Windows is getting these values when it creates a domain user account versus a local workstation account?  These two settings are driving me crazy!

    Thanks for any help or insight you can provide.

    Monday, December 31, 2012 1:08 AM

All replies

  • I will put up a picture of the relevant settings in the GUI as soon as the forum lets me.  Right now it's saying it has to verify my account before I can post pictures or links.
    Monday, December 31, 2012 1:43 AM
  • Hi,

    You can simply login with your domain account and change the settings via GUI. And navigate to this registry:


    It should make the value changes in this registry.

    Tracy Cai

    TechNet Community Support

    Wednesday, January 02, 2013 7:31 AM
  • I agree with you that the issue is likely related to GPO. However, "gpupdate /force" can no make all GPO applied, such as logon script.

    In addition, if the domain user account logged on before you modified the default user profile. The original profile will not be updated.

    Wednesday, January 30, 2013 7:26 AM
  • I hear what you're saying, but the domain users didn't log on before the Default profile was modified and the logon script is pretty much just a drive mapping script.  I've resorted to placing two shortcuts on the Default user's Desktop; one is a batch file with the following command that sets AlwaysShowMenus:

    reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v AlwaysShowMenus /d 00000001 /t REG_DWORD /F

    And the other is a shortcut with the command line: C:\Windows\System32\control.exe folders that opens the Folder Options dialogue box where I can manually select the "Show hidden files, folders, and drives" on the View tab.*

    *If I use the command reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /d 00000001 /t REG_DWORD /F in the batch file , it still doesn't select "Show hidden files, folders, and drives" so there must be more going on with this setting than the value of the Hidden key alone.

    Saturday, February 02, 2013 2:20 AM