TS User profiles location/moving
From: Hork (anonymous_at_discussions.microsoft.com)
Date: 03/24/04
- Next message: Dani: "Re: Troubles with Word and Citrix"
- Previous message: Marc: "Re: Going crazy over this one!"
- In reply to: Sean Moore: "TS User profiles location/moving"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Mar 2004 11:56:25 -0800
If your logon script is vbs try testing this:
'***** Move "My Documents" from the profile to
C:\mydocs\USERNAME *****
oMyDocsReg = WshShell.SpecialFolders("MyDocuments")
oMyDocsFol = "c:\MyDocs\" &
WshShell.ExpandEnvironmentStrings("%USERNAME%")
If oMyDocsReg <> oMyDocsFol then
If not oFSO.FolderExists(oMyDocsFol) then
If not oFSO.FolderExists("c:\MyDocs") then
oFSO.CreateFolder("c:\MyDocs")
End If
If not oFSO.FolderExists(oMyDocsReg) then
oFSO.CreateFolder(oMydocsReg)
End IF
oFSO.MoveFolder oMyDocsReg, oMydocsFol
End If
WshShell.RegWrite "HKCU\Software\Microsoft\Windows\Current
Version\Explorer\User Shell Folders\Personal",
oMydocsFol, "REG_EXPAND_SZ"
End If
End If
Just sub in the new location, currently in the script
it's c:\mydocs. You'll notice the path after RegWrite is
where the My Documents folder location is defined.
>-----Original Message-----
>We have 5 users using MS Office 2003 via TS into a Win2K
box. All of their
>profiles (and therefore my documents) are on the same
drive as the OS
>(c:\documents and settings\user 1)
>
>Is there an easy way to move the location of users "my
documents" folder to
>another drive as they are rapidly filling the drive.
>
>Right clicking on a users desktop my docs icon and
selecting move should
>work ? - is there a more elegant process to relocate the
entire profile?
>
>Thanks.
>
>
>.
>
- Next message: Dani: "Re: Troubles with Word and Citrix"
- Previous message: Marc: "Re: Going crazy over this one!"
- In reply to: Sean Moore: "TS User profiles location/moving"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|