wilbertnl Posted May 20, 2006 Share Posted May 20, 2006 Hello All,What I want to accomplish is that for each new account the following folders are created instantly:Desktop: %SystemDrive%\personal\%UserName%\DesktopFavorites: %SystemDrive%\personal\%UserName%\FavoritesMy 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 More sharing options...
GreenMachine Posted May 20, 2006 Share Posted May 20, 2006 (edited) 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 May 20, 2006 by GreenMachine Link to comment Share on other sites More sharing options...
wilbertnl Posted May 21, 2006 Author Share Posted May 21, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now