How do I apply this setting to All Users?


  1. Posts : 2
    Windows 7 Enterprise 64-bit
       #1

    How do I apply this setting to All Users?


    Hi,

    I am trying to set up a computer so that any user who logs in will have the following settings:

    show hidden files, folders, or drives -- enabled
    hide protected operating system files -- disabled
    *In summary, all users should be able to see all hidden files, folders, drives and protected operating system files.

    I know how to do this for a logged in user, but I want it to apply to everyone without having to touch every profile. Is this possible? The computer in question is Windows 7 32-bit.

    Thanks in advance.
    Last edited by laurshel; 19 Oct 2015 at 08:49. Reason: clarification
      My Computer


  2. Posts : 6,285
    Windows 10 Pro X64
       #2

    How many users are you talking about? If it's only a few it would be quicker just to create the accounts then make the changes.
      My Computer


  3. Posts : 2
    Windows 7 Enterprise 64-bit
    Thread Starter
       #3

    It would be 40+ accounts.
      My Computer


  4. Posts : 1,025
    Linux Lite 3.2 x64; Windows 7, 8.1
       #4

    It sounds something like this. I don't know if there's a simple way to preset settings in the Default user account, but if you'd be satisfied with semi-automatic, you could use the Windows Migration tool to save the desire settings, then import them for each new (and I'm assuming you're referencing new accounts, and not existing accounts on a domain) account with a few clicks. If it's just basic settings the import would be fast, but it's still a workaround.
      My Computer


  5. Posts : 6,285
    Windows 10 Pro X64
       #5
      My Computer


  6. Posts : 721
    Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
       #6

    laurshel said:
    I want it to apply to everyone without having to touch every profile. Is this possible?
    That isn't possible; you're going to have to "touch" every profile.

    To make things especially easy though, Laurshel, I've put together two scripts for you: one, VBScript, that will make appropriate registry changes to immediately show all hidden and system files; and the other will help you place this VBScript into the Startup folder of all user accounts.

    A user's Startup folder can be found at "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup". Windows will automatically invoke all files in this folder during the user's logon.

    The VBScript will delete itself after it's run.


    ShowAllHiddenFiles.vbs
    Code:
    ' Enable viewing of all hidden files in Explorer. I.e. under Folder Options,
    '     Selects "Show hidden files, folders, and drives"
    '     Unchecks "Hide protected operating system files (Recommended)"
     
    Set WshShell = CreateObject("WScript.Shell")
    Key = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
    For Each I in Array("Hidden", "ShowSuperHidden")
        WshShell.RegWrite Key & "\" & I , 1, "REG_DWORD"
    Next
     
    WshShell.AppActivate("Program Manager")
    WshShell.SendKeys("{F5}")
     
    CreateObject("Scripting.FileSystemObject").DeleteFile WScript.ScriptFullName

    CopyFileToStartupFolder.bat
    Code:
    @echo off
    REM Copies a given file to each local users' startup folders. 
     
    if "%~1"=="" exit /b
    if not exist "%~1" exit /b 1
     
    for /f "delims=" %%I in (' dir /a:d-h /b "C:\Users" ') do (
        copy "%~1" "C:\Users\%%~I\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
    )
    Simply place both scripts on your desktop, and drop the VBScript file onto the Batch file to copy it to all users' Startup folders.
      My Computer


  7. Posts : 6,285
    Windows 10 Pro X64
       #7

    Why won't modifying the default local user profile work?
    All additional profiles are created from it as far as I know.
      My Computer


  8. Posts : 10,485
    W7 Pro SP1 64bit
       #8

    Ztruker said:
    Why won't modifying the default local user profile work?
    All additional profiles are created from it as far as I know.
    It is not totally clear from the posts, but I think that the OP wants to change 40+ existing profiles.

    Pyprohly's solution handles that well.

    There are scripts that can enumerate the users, load/change/unload all user hives... but they are complex.
      My Computer


  9. Posts : 6,285
    Windows 10 Pro X64
       #9

    True. I was thinking of new accounts.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:58.
Find Us