VBS to enumerate Office field in AD?

Posted on 2011-05-12
Last Modified: 2012-06-27
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!
Question by:jcritzer
    LVL 31

    Accepted Solution

    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.


    Author Comment

    Nice utility!  Thanks for the heads up!
    LVL 31

    Expert Comment

    No problem.  Glad it worked for you.



    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This article shows how a content item can be identified directly or through translation of a navigation type. It then shows how this information can be used to create a menu for further navigation.
    This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now