I need to check each of my computer accounts in active directory for a
specific user group. If it exists move on to the next computer
account, if it is missing add the user group to the computer account
and move on to the next computer account.

The script needs to be for global groups and not local computer
groups. I hope someone can help.

Re: Check for missing user group in computer account by Richard

Richard
Fri May 11 19:17:44 CDT 2007


<harneu@gmail.com> wrote in message
news:1178925367.050355.221040@y80g2000hsf.googlegroups.com...
>I need to check each of my computer accounts in active directory for a
> specific user group. If it exists move on to the next computer
> account, if it is missing add the user group to the computer account
> and move on to the next computer account.
>
> The script needs to be for global groups and not local computer
> groups. I hope someone can help.
>

I don't understand the statement "add the user group to the computer
account". A computer can only have local groups (and users). These local
groups can have members that are local or domain objects (users or groups).
In addition, the computer object itself can be a member of domain groups.
Are you making sure a domain group is a member of a local group on every
computer? Maybe an example will help clarify.

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--