Jump to content

Show file ext via registry


plissje

Recommended Posts

Hi all,

I'm trying to change the show file extension setting for all users via cmd (for unattended installation), but I cannot seem to get it to work.

I know about the HKCU key:

reg ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f

What I want to change is the setting to ALL users, not just the current one.

Is there any way to do it? I would accept any offer that is able to be run via batch or something not just the registry.

Link to comment
Share on other sites


Yes, mount your default user profile and make the change there.

REG LOAD HKU\Hive "C:\Documents and Settings\Default User\NTUSER.DAT"
REG ADD HKU\Hive\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f
REG UNLOAD HKU\Hive

If you want to build this into your nLite, you should run it at the T-12 cmdlines.txt stage so that is integrated before any user accounts are created.

Edited by MrJinje
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...