Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


plissje

Show file ext via registry

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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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

Edited by plissje

Share this post


Link to post
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.

×