As part of my blog migration from blogspot.com to here, I migrated all previous posts and comments and setup redirection on the old site. Of course nothing is foolproof so if you were searching for content on the old site and can’t find it here, please let me know and I’ll either republish or get you the correct link.
About Me

I am certified Microsoft professional, a Microsoft MVP and an IT veteran with almost 20 years of experience, much of it spent as an IT consultant specializing in Windows server technologies. I work today as an independent author, trainer and consultant. I've co-authored or authored several books, courseware, and training videos on administrative scripting and automation. My latest book is Windows PowerShell 2.0: TFM (SAPIEN Press 2010).
Please consider a donation if I've been of any help or assistance. Thank you.

Sponsored Links






I am looking for a script that will read a .csv file to get the username and the use adsi to edit the field in the user object that maps the users homedrive.
You didn’t mention if you wanted to use VBScript or Powershell. It would be easier with the latter, especially if you can use the free Quest AD cmdlets.
import-csv users.csv | foreach {
set-qaduser $_.name -homedrive “Z:”)”
}
You could also accomplish this with DSQuery and DSMod from the command line. See what you can work out and then post something in the appropriate forum at ScriptingAnswers.com. I’ll be unavailable for a while but there are other forum members who can help out.
Actually, this doesn’t even need a script. Select the user accounts in Active Directory Users and Computers (assuming you are running Windows 2003 or later). Right click and edit the account properties. Make all the bulk modifications you want.