Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Run Tasks on Timers in PowerShell

Trevor Sullivan via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn how to run tasks on periodic timers using PowerShell in this 17-minute tutorial. Discover how to utilize the Timer class from the .NET Framework's System.Timers namespace to create automated task scheduling without relying on your operating system's task scheduler. Explore the process of creating a Timer object, registering for the "Elapsed" .NET event using Register-ObjectEvent, and specifying a PowerShell ScriptBlock for task execution. Perfect for tasks like cleaning up old log files on an hourly basis, this tutorial provides a powerful alternative to traditional scheduling methods on Linux, MacOS, and Windows systems.

Syllabus

Run Tasks on Timers in PowerShell

Taught by

Trevor Sullivan

Reviews

Start your review of Run Tasks on Timers in PowerShell

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.