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 Server.
I need to create a task that will run every on 5th and 20th of each month. Is this possible with schtasks.exe?
Creating a scheduled task that will run on every sunday and monday of a week is possible with:
schtasks /create /tn test /tr "cmd.exe" /sc weekly /d mon,sun
But with the same aspect, any of the following is not working.
schtasks /create /tn test /tr "cmd.exe" /sc monthly /d 5,15
schtasks /create /tn test /tr "cmd.exe" /sc monthly /d "5 15"
Any ideas?