"Ed Siff" <(E-Mail Removed)> wrote in message
news:419a58e5$(E-Mail Removed)...
> It's likely going to require VB. Search google groups for: script move
OU,
> you'll find plenty there.
Not to pick nits, but I doubt that one would require VB - VBScript by itself
would probably suffice.
Of course, the specific application might have some unforeseen ambiguities.
OU names (i.e. RDN or canonical name) need not be unique across AD. The
script might need to make some choices between the "Human Resources" OU
found in the "Management" OU, and the "Administrative" OU, for example.
The question I would ask the OP is: how did the computer accounts come to
have their location attributes set? If this was input by a user or operator,
is there a chance of a spelling error, and how would this be handled by your
script?
If the location attribute setting is at least partly automated, then perhaps
that process could be amended to also adjust the OU. One possibility could
be to present to the person setting up the workstation a drop-down list of
all possible OU's and have them pick the correct one.
/Al
> Ed
>
> In article <(E-Mail Removed)>,
> (E-Mail Removed) (stefanoc) wrote:
> >I am trying to find a script that will move computers from the default
> >computers container, into an OU based on their location fields.
> >
> >Example:
> >
> >Location = Human Resources - Move to OU Human Resources
> >
> >Has anyone got a script that can do this, or that can point me in the
> >right direction.