Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

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