Script to add to local Admin group to multiple computers

Hey all, I am looking for a script VB or powershell that I can run with Psexec to add users to the local admin group to multiple computers at once.  I get requests to add users to these computers' local admin groups so that they can test applications. Well there are over 50 lab computers, I am trying to avoid going to or connecting to each Computer Management MMC to add them to the group.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mitch harperDir. of I.T.Commented:
if you have all of the systems on a domain create a user group with the users you want as local administrators then make a text file 'computer.lst' with the name of all the systems then run the following command

psexec @computer.lst net localgroup administrators [domain]\[local-admin-group] /ADD

If you are not on a domain you will need two text files, one with the computers and another with the users and use a nested FOR statement to read the files to add the users.  let me know if you need this.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
xzay1967Author Commented:
Oh wow, never thought of that. I do know how to do that command, thanks for the tip/reminder.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.