[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 380
  • Last Modified:

VBS to enumerate Office field in AD?

Hey, I'm looking for a VBS script which will replace a specific string under the Office field of AD users with a predefined string.  The specifics are...

Single level AD setup
OU called "Fire&Rescue"

All users under this OU (it's the Fire/Rescue system for a local government) need to have their Office field updated from "Fire, Rescue & Emergency Services" updated to "Fire and Rescue"

Don't want to affect users outside this OU or without the previous string already in the Office field.

Anybody have or know of such a script?

Thanks in advance!
0
jcritzer
Asked:
jcritzer
  • 2
1 Solution
 
Justin OwensITIL Problem ManagerCommented:
There is a nifty utility called ADModify which allows extremely granular, bulk modifications like this.  I would suggest using this free utility instead of writing a script.

DrUltima
0
 
jcritzerAuthor Commented:
Nice utility!  Thanks for the heads up!
0
 
Justin OwensITIL Problem ManagerCommented:
No problem.  Glad it worked for you.

Cheers,

DrUltima
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now