2
1
Is it possible to add domain group to local group via command line?
I can add specific users or domain users, but not a group. I would prefer to stick with a command line, but vbscript might be okay. We are looking for a solution that doesn't involve GPOs because this is just for a couple of rooms on our campus and just once.
net localgroup "Administrators" "myDomain\Username" /add
works but
net localgroup "Administrators" "myDomain\Local Computer Administrators" /add
doesnt
If I use a GPO, wont it revert after logoff? – PsychoData – 2014-10-13T14:21:03.977
The GPO will be enforced as long as it applies to the machine, that is, as long as the machine is in an OU to which the GPO applies. – Patrick Seymour – 2014-10-13T14:22:38.773
And it will be set everytime the computer boots or logs on (depending where I'm applying it) right? Why not just make the change once and be done with it. This is something we want standard on all our computers and these were done wrong before we imaged them. – PsychoData – 2014-10-13T14:25:22.470
I guess it's more of an enforcement thing, to make sure the configuration you want is always applied. It's not like GPO processing takes minutes; it's in the sub-seconds range for group membership enforcement. If you use GPO Preferences instead of the Restricted Groups policy, you can apply once and never apply again. Anyway, that part of my reply was just a recommendation. – Patrick Seymour – 2014-10-13T15:39:26.457
So, patrick, what if I was to make the GPO, make sure all of the machines had it applied to them and then deleted the GPO again? Would the affects of the GPO persist? or would they revert? – PsychoData – 2014-10-26T16:28:42.067
The effects would persist, as long as no other outside influences exist (other GPOs, etc.). – Patrick Seymour – 2014-10-29T16:16:11.060