powershell - Adding AD users as an Admin -
here's situation. i'm new powershell use small words...
i have new user in active directory need add 100 computers efficiently possible. hope make powershell script add user either through login script or remotely. need have bit of precision control on deployment because don't want push user every computer in company.
can powershell me this, , if not have sage advice help?
to add user local administrators group using powershell:
([adsi]"winnt://./administrators,group").add("winnt://your-domain/new-user,user")
just replace your-domain
, new-user
parts of command appropriate values environment.
Comments
Post a Comment