use powershell to find scheduled tasks set to wake the computer use powershell to find scheduled tasks set to wake the computer powershell powershell

use powershell to find scheduled tasks set to wake the computer


This can be done in a one-liner:

Get-ScheduledTask | where {$_.settings.waketorun}

Get-ScheduledTask is available in Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2.


on win8.1:

$tasks = Get-ScheduledTaskForEach ($task in $tasks){    if($task.settings.waketorun -eq 'True')        {"$($task.taskname)"}}


That information should be down in the xml. Edit: Graimer is correct that this is not using the same script that was linked.
This uses Get-ScheduledTask from the TaskScheduler Module in the PowerShellPack, which can be downloade from here: http://archive.msdn.microsoft.com/PowerShellPack

$tasks = Get-ScheduledTask -ComputerName <ComputerName>ForEach ($task in $tasks) {   $xml = [xml]$task.xml   if ($xml.task.settings.waketorun -eq 'True')     { "Task $($task.name) is set to WakeToRun" } } 

or simply

 Get-ScheduledTask | select TaskName,TaskPath,@{name="Aufweckung.";expression={$_.Settings.WakeToRun}} -ExpandProperty Triggers | ft -AutoSize -Wrap