I currently write a PowerShell script for monitoring the scheduled tasks from the Windows task scheduler. I got everything to work except the description message for the triggers. I need the Windows generated text that is displayed in the task Scheduler. I can use C# or PowerShell to do this, but I haven't found a way to get this message and I have not enough time to write a generator myself.
Do you guys know a way to do this?
Thank you!
You are looking for Get-ScheduledTaskInfo
: link
Syntax:
Get-ScheduledTaskInfo
[-TaskName] <String>
[[-TaskPath] <String>]
[-CimSession <CimSession[]>]
[-ThrottleLimit <Int32>]
[-AsJob]
[<CommonParameters>]
Using the cmdlet without parameters will show all running scheduled task and their information.
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.