SOLVED

Disable Hidden Files on AutoPilot / Find my Device without Admin Rights

%3CLINGO-SUB%20id%3D%22lingo-sub-2042963%22%20slang%3D%22en-US%22%3EDisable%20Hidden%20Files%20on%20AutoPilot%20%2F%20Find%20my%20Device%20without%20Admin%20Rights%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2042963%22%20slang%3D%22en-US%22%3E%3CP%20class%3D%22_1qeIAgB0cPwnLhDF9XSiJM%22%3EHi%20all%2C%20I%20am%20stuck%20with%20my%20settings%20for%20the%20AutoPilot%20client.%20It%20is%20about%20two%20things%20to%20which%20I%20could%20not%20google%20anything%20so%20far%3A%3C%2FP%3E%3CP%20class%3D%22_1qeIAgB0cPwnLhDF9XSiJM%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22_1qeIAgB0cPwnLhDF9XSiJM%22%3E1.)%20On%20the%20client%2C%20the%20normal%20user%20(not%20admin)%20after%20installation%20hidden%20files%20and%20folders%20are%20displayed.%20Is%20there%20a%20way%20to%20disable%20this%20via%20a%20Powershell%20script%20or%20CSP%20(Custom%20Policy)%3F%3C%2FP%3E%3CP%20class%3D%22_1qeIAgB0cPwnLhDF9XSiJM%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22_1qeIAgB0cPwnLhDF9XSiJM%22%3E2.)%20For%20the%20rolled%20out%20autopilots%2C%20%22Find%20my%20Device%22%20must%20be%20enabled.%20I%20have%20not%20been%20able%20to%20find%20a%20policy%20to%20integrate%20this%20practically%20into%20the%20rollout%20process%20without%20having%20to%20intervene%20as%20admin%20afterwards.%3C%2FP%3E%3CP%20class%3D%22_1qeIAgB0cPwnLhDF9XSiJM%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22_1qeIAgB0cPwnLhDF9XSiJM%22%3EThanks%20for%20the%20help%20and%20have%20a%20nice%202021%20together%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2042963%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%20Device%20Management%20(MDM)%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2043422%22%20slang%3D%22en-US%22%3ERe%3A%20Disable%20Hidden%20Files%20on%20AutoPilot%20%2F%20Find%20my%20Device%20without%20Admin%20Rights%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2043422%22%20slang%3D%22en-US%22%3EHere%20is%20the%20reg%20path%20for%20it%2C%20you%20can%20push%20a%20simple%20ps%20script%20using%20Intune%20to%20change%20the%20value.%3CBR%20%2F%3E%3CBR%20%2F%3EHKEY_CURRENT_USER%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5CExplorer%5CAdvanced%3CBR%20%2F%3E%3CBR%20%2F%3EHidden%3D2%3CBR%20%2F%3E%3CBR%20%2F%3E%24path%3D%20%E2%80%98HKCU%3A%5C%20Software%5CMicrosoft%5CWindows%5CCurrentVersion%5CExplorer%5CAdvanced%E2%80%99%3CBR%20%2F%3ESet-itemproperty%20-path%20%24path%20-Name%20%E2%80%98Hidden%E2%80%99%20-Value%202%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20can%20run%20the%20script%20with%20standard%20user%20privileges.%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20this%20helps!%3CBR%20%2F%3EMoe%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi all, I am stuck with my settings for the AutoPilot client. It is about two things to which I could not google anything so far:

 

1.) On the client, the normal user (not admin) after installation hidden files and folders are displayed. Is there a way to disable this via a Powershell script or CSP (Custom Policy)?

 

Thanks for the help and have a nice 2021 together

2 Replies
Here is the reg path for it, you can push a simple ps script using Intune to change the value.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced

Hidden=2

$path= ‘HKCU:\ Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced’
Set-itemproperty -path $path -Name ‘Hidden’ -Value 2

You can run the script with standard user privileges.

Hope this helps!
Moe
best response confirmed by alex_ri141 (New Contributor)
Solution
Hello, thanks for the help, has brought me further. Sorry for the late feedback

VG
Alex