Link to home
Start Free TrialLog in
Avatar of SAM IT
SAM IT

asked on

I am trying to export the list of scheduled tasks in to CSV, I am using below power shell command

Edit Question
Hello Friends,

I am trying to export the list of scheduled tasks in to CSV, I am using below power shell command

Get-ScheduledTask | select -ExpandProperty author  Using this command i can export only author (runasuser) details , when I add name/task name after/before author(RUNASUSER) I am getting error message

My requirement is to export list of tasks with Name& runasuser

Please assist
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It seems that Get-ScheduledTask doesn't give you that information.
How about
Get-WmiObject win32_service | select Name, StartName

Open in new window

Avatar of SAM IT
SAM IT

ASKER

Thanks a lot for best solution and quick response ....Have a  nice day