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

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -