batch file - program using task scheduler that echos user while running as admin -
i'm trying create program echo's current user.
as program needs run admin using task scheduler %username% returns admin, not user.
what i'm looking in end batch echo's time stamp, user info , pc info every time user logs on, off, locks, unlocks, switches user, ...
i ran similar issue before, try using whoami
Comments
Post a Comment