May 17, 2012
tom

Running a batch script as network services on windows

Question

On linux I know you can run files under different users pretty easily but on Windows how do you do it? Do I have to log in under that user? Can I run it with the schedule system? I need to be able to run a batch type file under another user.

Answer

Yes, you can select the target user when setting up a job in the Task Scheduler. It’s in the “Security Options” section of the General tab.

Screenshot from Windows 2008 R2:

Create Task Dialogue screenshot

Answered by ErikA

Related posts:

  1. Why isn’t my Scheduled Task running a batch script?
  2. Running a windows batch script in a separate process
  3. Export or Batch script Windows VPN Network Connection
  4. Delete windows profiles with similar names using a batch file or script
  5. Is it possible to run a batch script remotely on a Windows machine from Linux without installing ssh?

Leave a comment