how to add a domain user to the local admins on multiple servers.

Needed to add a user to the local administrators on 16 citrix servers, below is the code if you need it.

psexec @servers.txt cmd /c “net localgroup Administrators /add domainusername”

this doesnt work with multiple usernames at one time.

get psexec here:

servers.txt is a text file containing a list of servers, i.e:





Related Posts

Viewing open files on a file server from powershel... So this is a situation you should all be aware of in an SBC / VDI environment, despite all warnings, you've redirected folders to your network drive a...
Monitoring Storage disk queue’s and IO with ... Here's one that used to bother me alot. The problem usually went as follows: "Your XenApp servers have very high disk queue's and IO" "What's causin...
The curious case of missing file shares on a Micro... I had a very unusual issue recently where, after a fail over one of my file cluster resources didn't publish all shares to the users. Some shares did ...

Leave a Reply