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. 


Sign in to follow this  
wilbertnl

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?

Share this post


Link to post
Share on other sites

Here is an untested modified sniplet of the file I use to accomplish this. Must be run AFTER setup has completed, e.g. GUIRunOnce from WINNT.SIF.

MAKEDIRS.CMD

Edited by GreenMachine

Share this post


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

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...