简体   繁体   中英

How to run existing task scheduler's task (Scheduled Task) using Powershell?

Is it possible to run existing task scheduler's task on Windows 10 using Powershell?

I can create, modify, delete tasks on win 10 with powershell.

I know about command line schtasks.exe.

Use the Start-ScheduledTask Cmdlet:

Here is an example:

Start-ScheduledTask -TaskName "ScanSoftware"

Please check this link for more information

I can only assume that you're referring to schtasks.exe. This command line is the method I've used many times for running a task. Is there a reason to not use this command line utility?

Schtasks /run /tn should do the trick.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM