Jump to content
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. ×

change default location of shell folders


Recommended Posts

Hello All,

What I want to accomplish is that for each new account the following folders are created instantly:

Desktop: %SystemDrive%\personal\%UserName%\Desktop

Favorites: %SystemDrive%\personal\%UserName%\Favorites

My Documents: %SystemDrive%\personal\%UserName%\Documents

(example: C:\Personal\<user>\Documents)

All the other user shell folders would remain in %UserProfile%\*

(example: C:\Documents and Settings\<user>\Local Settings\Temp)

So, basically, I still want settings in the "\Documents and Settings\<user>\*" structure,

but certain folders in a different location.

I have tried to change some values in the following key:

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]

but so far it doesn't seem to work like I intend.

How would I be able to accomplish this?

Link to comment
Share on other sites

Thank you for this script, GreenMachine,

Since this script runs at the end of the installation, I would assume that I can test this on my current test machine.

The script runs fine, and I observe the changes in the registry.

I assume that HKU\DU is the same as [HKEY_USERS\.DEFAULT in regedit.

I also used reg query to check.

But when I create a new account to check the result, the changes don't seem to retain.

I understand that you use similar scripts in your setup, so, would this only work after a fresh installation from a install CD that includes this script?

I appreciate your help, GreenMachine, thank you!

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...