Link to home
Start Free TrialLog in
Avatar of Joseph Moody
Joseph MoodyFlag for United States of America

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?
Avatar of xDUCKx
xDUCKx

Windows XP:

Domain\%username%

Windows 7

%whoami%
Avatar of Joseph Moody

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
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If I could give you 50,000 points, I would! This is awesome!!