Forum Discussion
jhenke6229
Sep 08, 2021Copper Contributor
How to return Windows Scheduled task Description?
From the Windows Scheduled Task:
I see the Date, Author, Description, and URI tags under RegistrationInfo tag in the task XML file
I want to get the Description value.
I tried this:
$TaskInfo = [xml] (Get-Content $AbsolutePath) # to the XML file
$TaskInfo.Task.RegistrationInfo just shows me Date, Author, and URI
How can I return the Task.RegistrationInfo.Description?
jhenke6229 You can try using these cmdlets:
Get-ScheduledTask -TaskName tasky # Description Get-ScheduledTaskInfo -TaskName taskyIf memory serves you;ll need to use both as the info isn't contained in 1 place.
2 Replies
- psophosBrass Contributor
jhenke6229 You can try using these cmdlets:
Get-ScheduledTask -TaskName tasky # Description Get-ScheduledTaskInfo -TaskName taskyIf memory serves you;ll need to use both as the info isn't contained in 1 place.
- jhenke6229Copper Contributor
psophos Thanks. Yep, can't believe I missed that