Running a batch script as network services on windows
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.
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:

Check more discussion of this question.
Related posts:
- Why isn’t my Scheduled Task running a batch script?
- Running a windows batch script in a separate process
- Export or Batch script Windows VPN Network Connection
- Delete windows profiles with similar names using a batch file or script
- Is it possible to run a batch script remotely on a Windows machine from Linux without installing ssh?
Leave a comment
Recent Posts
- Cron expression that runs every 5 minutes from 1:30 am – 6:00 am [duplicate]
- Understanding redundant power supplies
- Is there a way for administrators to disable users from installing Firefox extensions?
- Is there research material on NTP accuracy available?
- How to create a limited “domain admin” that does not have access to domain controllers?
Tags
active-directory
amazon-ec2
apache
apache2
backup
bash
centos
cisco
command-line
debian
dns
email
exchange
firewall
iis
iis7
iptables
linux
macosx
monitoring
mysql
networking
nginx
performance
permissions
php
postfix
raid
security
sql-server
sql-server-2005
sql-server-2008
ssh
ssl
ubuntu
unix
virtualization
vpn
webserver
windows
windows-7
windows-server-2003
windows-server-2008
windows-server-2008-r2
windows-xp





