Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active Directory Question

Status
Not open for further replies.

bradx

IS-IT--Management
Sep 9, 2003
20
US
I need to change the home folder location for about 10,000 users, and I really don't want to do it individually. :) Does anyone have any recommendations on software that will allow me to make changes such as this to multiple users? I know AD Users and Computers will not.

Thanks

Brad Thibodaux
 
It is not a Windows 2003 domain, but a Windows 2000.
 
If you can get a 3rd party tool like Hyena to do this it would be easy, otherwise a script would be best
 
You can redirect the My Documents folder to another location such as a network share. Here's a script that edits the registry to move the My Documents, and My Pictures folders.

1.


Save the following script in a text file called Redirect.inf (use Notepad). Change PERSONAL and PICTURES to the paths you want to use for the My Documents and My Pictures folders.

[Version]
Signature=$CHICAGO$

[DefaultInstall]
AddReg=Reg.Settings

[Reg.Settings] HKCU,Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,Personal,0x20000,"%PERSONAL%"
HKCU,Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,My Pictures,0x20000,"%PICTURES%"

[Strings]
PERSONAL = "\\Server\Share\%USERNAME%\My Documents"
PICTURES = "\\Server\Share\%USERNAME%\My Documents\My Pictures"

2.


Right-click Redirect.inf, and then click Install.

There are other ways to script this type of registry edit, but I like the flexibility of INF files.

The Knowledge Base article How to Change the Default Location of the My Documents Folder explains how to do this using the Windows XP user interface.
 
well i know how you could do it...but it would involve a long script

ldifde modifications will work to change the user account properties
could also script the data move
only problem is setting ownership back on teh folders, that will make it long..subinacls could eb used there though..or xcacls

-Brandon Wilson
MCSE00/03, MCSA:Messaging, MCSA03, A+
almost got a paragraph there :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top