Add LAST LOGGED IN USER to local admin group using a PDQ variable?

I'm wondering if there's a PDQ variable that we can use in a 'net localgroup /add' script that would specifically add the last logged on user to the local administrators group.

I know how to deploy a script that adds accounts that I specify, but it's tedious having to edit that job script for every deployment.  It would be nice to run a single job that pulls that account name and plugs it into the script for each computer in a collection.



1 comment
Date Votes

Please sign in to leave a comment.

Didn't find what you were looking for?

New post