2
I have a scheduled task which runs a batch file which does some stuff. I want the batch file to kick off another batch file which runs in user space; i.e. %username% == the currently logged-in user, with user permissions, etc. How can I run a command under the current user, given that the scheduled task runs with SYSTEM permissions?
I need this for both Windows XP and Windows 7.
When this answer was posted, I didn't know about
psexec
yet. Using it might be easier. – user1686 – 2013-08-06T11:40:13.500