The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
42 views

Task Scheduled Powershell Script Not Shutting Down machine

I have a task running on a Hyper-V server setup as such: schtasks /CREATE /TN AutoShutdown /RU "SYSTEM" /TR "Powershell \"C:\AutoShutdown.ps1\"" /SC ONSTART It runs properly (as far as I can tell) ...
1
vote
1answer
265 views

How to schedule a task to run when the windows server is reboot or shutdown?

I would like to be able to fire a task before a windows server 2012 is reboot or shutdown. I can see task scheduler supports an 'on startup' trigger. Unfortunately there is similar event for reboot ...
3
votes
1answer
226 views

Need help using SCHTASKS on Windows Server 2008/2012

I'm executing the following command : schtasks /create /tn "test" /ru system /SC onevent /TR "test" /F /RL HIGHEST /MO "*[System[Provider[@Name='SupportAssistService'] and EventID=900]]" /EC ...
1
vote
1answer
6k views

SchTasks giving out error (0x1) on Windows 2008 R2

i have a powershell script which creates scheduled tasks as a part of automation process and my syntax is following; schtasks /create /s ServerName /u $username /p $password /ru $username /rp ...
0
votes
1answer
897 views

How to prevent schtasks on Windows 7 from showing the command prompt after executing a task?

I am trying to get a scheduled task on Windows 7 to execute once a minute, using schtasks and a batch file. My .bat batch file is: @ECHO OFF wscript "c:\http.vbs" The .vbs script si a simple one, ...
2
votes
2answers
2k views

Add a new scheduled task from command line with “wake the computer to run this task” on

I'm trying to add a scheduled task to start every day at a fixed hour even if the computer is in sleep mode. In the Windows Scheduled Tasks Manager UI, there is a check-box labeled "Wake the computer ...
0
votes
1answer
95 views

Shutting down system using task scheduler feature

I am working on a network with multiple systems with windows XP. My aim to schedule a system shutdown at a specific time, but i don,t want everybody to set it manually. Just a click on the .cmd file i ...
4
votes
2answers
3k views

How to schedule a task for multiple days of a month using schtasks.exe?

Since task scheduler API has been changed after Vista & Server 2008, scheduling a task with schtasks is (as much as I know) the only way that works on both Windows 2003 Server and Windows 2008 ...
4
votes
2answers
7k views

How can I script schtasks so it doesn't need a password?

I'm trying to install some software using a batch script and using schtasks to start a service every day at midnight. The script works fine, but it prompts for a password, which causes the script to ...