EricWestbo
asked on
W2K Pro Folder Redirection
Hey, all...
I know that it is possible to set a group policy for folder redirection on a domain, but what about as a local policy?
My W2KP box is part of an internal p-2-p network, and I'm trying to implement folder redirection to keep files, foldes & apps off the drive that contains the sys files.
Would like to set folder redirection for MyDocs to a seperate volume for each of 4 users (I know I can setup HomeDir, but that is in *addition* to MyDocs & does not redirect, to my understanding)... also have temp & tempInternet folders redirected to T: volume.
Any help would be appreciated... working on it tonight.
Regards,
/ew
I know that it is possible to set a group policy for folder redirection on a domain, but what about as a local policy?
My W2KP box is part of an internal p-2-p network, and I'm trying to implement folder redirection to keep files, foldes & apps off the drive that contains the sys files.
Would like to set folder redirection for MyDocs to a seperate volume for each of 4 users (I know I can setup HomeDir, but that is in *addition* to MyDocs & does not redirect, to my understanding)... also have temp & tempInternet folders redirected to T: volume.
Any help would be appreciated... working on it tonight.
Regards,
/ew
ASKER
Corvax,
Not a big scripter, to be honest, but can probably dance my way around the variables, etc.
How would I save this to disk? ie: what kind of extension? is this a .vbs?
Going to give it a try in a bit & will post results.
/ew
Not a big scripter, to be honest, but can probably dance my way around the variables, etc.
How would I save this to disk? ie: what kind of extension? is this a .vbs?
Going to give it a try in a bit & will post results.
/ew
ASKER
Just a follow-up Q: I see the variable for MyDocs & Temp... what about Temporary Internet Files? Is there a specific variable to use?
/ew
/ew
Yes it is a .vbs, just open notepade and save it in there and rename it after...
If you copy past this, there is one problem.
the 2 lines for the Mydocs. They are split in two lines, you will have to put them ont the same so that line that goes like this:
Folder\Personal",MyDocsPat h,"REG_EXP AND_SZ"
is on the same line as the one on top...
If you copy past this, there is one problem.
the 2 lines for the Mydocs. They are split in two lines, you will have to put them ont the same so that line that goes like this:
Folder\Personal",MyDocsPat
is on the same line as the one on top...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've actually taken the info from the script and done a work-around right in regedit...
1) HKU\.DEFAULT\Environment\T EMP = T:\Temp
2) HKU\.DEFAULT\Environment\T MP = T:\Temp
3) HKU\.DEFAULT\Software\Micr osoft\Wind ows\Curren tVersion\
Explorer\User Shell Folders\Cache = T:\Temporary Internet Files
4) HKU\.DEFAULT\Software\Micr osoft\Wind ows\Curren tVersion\
Explorer\User Shell Folders\Cookies = T:\Cookies
5) Same changes in HKCU\
This is enabling me to dump all the trash into one volume which will then be cleaned up as part of my maintenance program. Keeps clutter off the sysVol.
Still playing, but couldn't have done it without your help.
Thanks again...
/ew
1) HKU\.DEFAULT\Environment\T
2) HKU\.DEFAULT\Environment\T
3) HKU\.DEFAULT\Software\Micr
Explorer\User Shell Folders\Cache = T:\Temporary Internet Files
4) HKU\.DEFAULT\Software\Micr
Explorer\User Shell Folders\Cookies = T:\Cookies
5) Same changes in HKCU\
This is enabling me to dump all the trash into one volume which will then be cleaned up as part of my maintenance program. Keeps clutter off the sysVol.
Still playing, but couldn't have done it without your help.
Thanks again...
/ew
No problem... My pleasure
Corvax
Corvax
Here is a sample:
------------------
'Initialize the Shell Object
Dim wshShell
Set wshShell = WScript.CreateObject("Wscr
'Network Object
Dim wshNet
Set wshNet = WScript.CreateObject("Wscr
'File Sytem Object
Dim fso
Set fso = WScript.CreateObject("Scri
'Vars for MyDocs And Temp
Dim MyDocsPath
Dim TempPath
'Set the values wanted
MyDocsPath = "T:\" & wshNet.UserName & "\My Documents"
TempPath = "T:\" & wshNet.UserName & "\Temp"
'Verifie if folder exists, if not then the folder must be created
'And regestry updated.
'Note: The Effects will Only take Place at next Logon.
'I Could force a logoff if you want...
If fso.FolderExists(TempPath)
fso.CreateFolder TempPath
'Write to the Regestry
wshShell.RegWrite "HKEY_CURRENT_USER\Environ
wshShell.RegWrite "HKEY_CURRENT_USER\Environ
End If
If fso.FolderExists(MyDocsPat
fso.CreateFolder MyDocsPath
'Write to the Regestry
wshShell.RegWrite "HKEY_CURRENT_USER\Softwar
wshShell.RegWrite "HKEY_CURRENT_USER\Softwar
End if