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.
Manage and Report Active Directory, Exchange and Microsoft 365 with
ManageEngine ADManager Plus - Download Free Trial
Exclusive offer on ADManager Plus for US and UK regions. Claim now!
ManageEngine ADManager Plus - Download Free Trial
Exclusive offer on ADManager Plus for US and UK regions. Claim now!
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.