Sep 08 2021 08:00 AM
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?
Sep 20 2021 08:03 AM
Solution@jhenke6229 You can try using these cmdlets:
Get-ScheduledTask -TaskName tasky # Description
Get-ScheduledTaskInfo -TaskName tasky
If memory serves you;ll need to use both as the info isn't contained in 1 place.
Sep 25 2021 05:03 PM
@psophos Thanks. Yep, can't believe I missed that
Sep 20 2021 08:03 AM
Solution@jhenke6229 You can try using these cmdlets:
Get-ScheduledTask -TaskName tasky # Description
Get-ScheduledTaskInfo -TaskName tasky
If memory serves you;ll need to use both as the info isn't contained in 1 place.