G
Guest
Hello,
I wanted to implement a script that would add a Domain Group into the local
Administrators group. It works fine, except that when it tries to place the
Domain Group into the local group and it's already present, it throws an
"error" saying that it's already present. I feel confident that this isn't
really an error per se, more just a piece of information, but I wanted to
see if there were a way in which I could avoid it. Perhaps there's batch
code that can check the membership of the group and then go to a different
line which would skip the process.
Is there such a thing?
Any info appreciated.
Thanks.
I wanted to implement a script that would add a Domain Group into the local
Administrators group. It works fine, except that when it tries to place the
Domain Group into the local group and it's already present, it throws an
"error" saying that it's already present. I feel confident that this isn't
really an error per se, more just a piece of information, but I wanted to
see if there were a way in which I could avoid it. Perhaps there's batch
code that can check the membership of the group and then go to a different
line which would skip the process.
Is there such a thing?
Any info appreciated.
Thanks.