|
|
Question : how do you change the registry so all user profiles are located on a seperate partition
|
|
.
after installing windows xp on a computer i would like to run a cmd file to change the default location of documents and setting which by default is system root normall c: to a backup partition h. i want the following "h:\documents and setting" instead of having it as "c:\documents and setting". i want it configured so, if you add user accounts in the future that it will automatcially make a user profile on h:\documents and setting\user. I know how to do this for one user, anyone knows how to write this in a cmd file?
|
Answer : how do you change the registry so all user profiles are located on a seperate partition
|
|
Copy this and paste it to a text file then save as documents.vbs double click or run on login and it will update the registry.
Set objshell = WScript.Createobject("WScript.Shell") 'On Error Resume Next 'Line above is commented as may not be needed
'Change location of Desktop folder RegLocate = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Desktop" objShell.RegWrite RegLocate, "H:\Documents and Settings\%username%\Desktop", "REG_EXPAND_SZ"
Change location of My Documents folder RegLocate = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Personal" objShell.RegWrite RegLocate, "H:\Documents and Settings\%username%\My Documents", "REG_EXPAND_SZ"
'Change location of Favorites folder RegLocate2 = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Favorites" objShell.RegWrite RegLocate, "H:\Documents and Settings\%username%\Favorites", "REG_EXPAND_SZ"
Wscript.Quit
|
|
|
|
|