Jump to content

Recommended Posts

Posted

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.


Posted (edited)

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
Posted (edited)

EDIT: my bad, wasn't taking my time in understand it. Thx a lot for your help MrJinje, works great =).

Edited by plissje

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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