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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -