schtasks command problem
HI
Using the schtasks command of Windows 7, as do I schedule a task so that a .ps1 script is executed only once during the startup of Windows 7?
Moreover, as do I prevent the login to Windows 7 until this task does not end?
THANKS
BYEBalubeto
July 20th, 2010 7:20pm
You can use the parameters ONCE and ONSTART. Please refer:
SchtasksPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
July 22nd, 2010 11:29am
You can use the parameters ONCE and ONSTART. Please refer:
Schtasks
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
The /sc once onstart option of schtasks not works. Why?
THANKS
BYE
Balubeto
July 22nd, 2010 12:53pm
Hi,
I noticed that there can be only one /sc option in a task. Therefore we cannot use “/sc once / sc onstart” in one command.
If you would like to only run the task once, you can consider to use “/z” with “/sc onstart” to delete the task after it runs successfully.
If you enter “Schtasks /create /?” you will get more information.Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
July 26th, 2010 8:33am