I have seen various articles on how to schedule a Powershell script, but I have not see much of the reverse. I need to call a manual task in Task Scheduler from my PowerShell script. I am using Powershell 2.0. Can anyone show me how to do this? Thanks.
The simplest way may be to use schtasks.exe
& schtasks.exe /Run /TN <Name of Scheduled Task>
NOTE -- on my Windows 8.1 preview with PowerShell 4.0 there is a Start-ScheduledTask
cmdlet.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.