Can anyone please suggest me way for below scenario:
We have domain group like “LSG-SA-Server” to provide local admin access to server. So this group needs to be added in servers local administrators group.
Suppose we have 2 groups “LSG-SA-Server1” and “LSG-SA-Server2”.
Server names are ‘Server1’ and ‘Server2’. I want to create a script that should automatically add server1 group to server1 and server2 group to server2. Can someone please guide me. I would appreciate that.