Joseph Moody
asked on
Remote GPResult Batch File
I have a batch file that contains:
gpresult /s %1 /user %2 /h report.htm /f
report.htm
How can I change this so that /user %2 is the current logged in user of the remote machine?
gpresult /s %1 /user %2 /h report.htm /f
report.htm
How can I change this so that /user %2 is the current logged in user of the remote machine?
ASKER
The %username% inputs the current logged in user of my machine. How can I have it give me the current logged in user of the remote machine?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
If I could give you 50,000 points, I would! This is awesome!!
Domain\%username%
Windows 7
%whoami%