Secret sauce that brings YouTube followers, views, likes
Get Free YouTube Subscribers, Views and Likes

Automate your PowerShell scripts with Windows Task Scheduler

Follow
Shane Young

In this video you will learn how to save your PowerShell cmdlets as a PS1 file and then run that PS1 file as a scheduled task. Pretty cool stuff. Short and to the point keeping you moving forward on your PowerShell skills journey.

Here is the code from the script if you need it:
GetDate | OutFile E:\Demo\log4video.txt Append
GetPSDrive PSProvider FileSystem | OutFile E:\Demo\log4video.txt Append

Video on creating useful CSV files
   • PowerShell Arrays Introduction  

Video on using GetDate
   • Work with Date & Time with PowerShell  

BONUS: This video shows you how to create the task with PowerShell
   • PowerShell create a scheduled task  

If you need more PowerShell help you can always contact me via https://www.BoldZebras.com

posted by Gladkovjp