MS Windows – Task Scheduler – Listing Tasks

Background

There is a nightly batch process that we need to test out as part of a Database Upgrade we are trying to process.

Unfortunately, the task is not running properly when scheduled through the MS Windows Scheduler.

There are likely a few likely causation.

Documentation

As part of a long trek, we need to document the scheduled tasks.

GUI

Microsoft greatly expanded the list of scheduled tasks in MS Windows.

Overview

Using Microsoft’s built-in Task scheduler, here is what ours look like.

GUI – Individual Tasks

To document individual tasks, please select the task, right click on it, and choose  “Export…” from the drop-down menu.

 

Bill Stewart

Need a way of scripting and generating a text file and that is where Bill Stewart comes in.

Code

I have uploaded his Powershell Script to GitHub and here is the Link.

Usage

Here are some sample usage scenarios.

Usage – List Chkdsk

Script

set _taskName=\Microsoft\Windows\Chkdsk\*

powershell ./Get-ScheduledTaskRevised.ps1 -TaskName %_taskName% -Subfolders

Output

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s