Automate your PowerShell scripts with Windows Task Scheduler

preview_player
Показать описание
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:

Video on creating useful CSV files

Video on using Get-Date

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

Рекомендации по теме
Комментарии
Автор

Loves your channel, it's a real help in entering the Powershell world.

TheYanivR
Автор

Thanks Shane, perfect working example ‘beginners intro’ to Windows Task Scheduler!

scottwood
Автор

I was struggling with bat files to run a simple p.shell script on task scheduler. Thanks a lot for this helpful video.

mehmetgullu
Автор

Good to see the way of sorting everything easily...

shokeensachin
Автор

Hi Shane, you've done the great job again. This is the mystery Kenny. The video is very helpful as usual. Many thanks and keep up the great work.

kennyjide
Автор

Love your tutorials and I'm new at this! Can you share how to do a full and incremental backup using PowerShell for simple folder backup? Thank you!

mera
Автор

You're the best Shane! Thanks for all your amazing videos :)

cazmaj
Автор

Thanks Shane for this lovely and simple to understand intro to executing PS script from windows task scheduler. I am completely new to PS scripting so please bear with me. From this video, I noticed that when setting up the "Action" tab, you did not use the syntax "-File" before the path to where your PS1 script (Add arguments (Optional)) is located. Though i have seen other forum and videos specified the use of this. Are you able to explain when you might need to use this please? Also, I am looking for an intro to subject incorporating the task scheduler whereby new files are monitored via PS scripts and send notification via emails on scheduled timetable. Would you have such video in your gallery please? Many thanks|!

TheHerbsterooney
Автор

You da man! This video was awesome. New sub B^)

PokemonBlueVersion
Автор

Shane, Can we get email notification from Powershell if newer version of Adobe Flash player(Activex and NPAPI), Google Chrome, Mozilla Firefox ESR and Adobe acrobat reader release

mohammedtoufeeqahamed
Автор

Hi Shane, not sure if you check old comments but here goes.
I've got a parameterised PS script with a username and password that I want automated but I don't want to have my password in plain text within my script for security reasons. Any tips about this?
Thanks, great video.

MickSkitz
Автор

Loved the content and your personality, made it fun. Hope dinner was good! :-)

kodkid
Автор

When I do this it says, running, but never finishes. Heard somewhere that you need to do something with the Set-ExecutionPolicy cmdlet. Any ideas?

lyspooner
Автор

Hi save option is greyed out for me - any idea why? Thanks

Lucad
Автор

What if the location from the ps1 scrip is in another server, should I use as argument \\servername\folder\.ps1 or how should I put there? Thank you in advance.

Credomatic
Автор

Yet, again Shane. Thanks for your vids. Its thru your vids where I was able to learn powershell for work.

Ah, to add though,
In the Actions part:
I'd suggest to add:
' -command "Set-ExecutionPolicy -ExecutionPolicy Bypass -Force" '
in the arguments part since there are times the script wont be able to run because execution policies restrictions.

nolitimere
Автор

every 10 mins d b scheduler pops up and it ruins my gaming, i try deleting it and stopping it and everything on task scheduler and no matter what i do it comes back, i dont know what to do

perilgg
Автор

Hi Shane for me everything working task is being creating but whenever it run it didn't show the file updated as if not run

akshitdhariwal
Автор

Hi, if i have 11 ps1 file how can i run it everyday, how to write it?

yeuharng
Автор

hi Shane i have been trying to copy folders in the same way but it is not working for me so i have just copied exactly what you have done and it is not completing the script both your script and mine both work if i just run them in powershell would you have any suggestions as i am new to powershell and task scheduler and can't help but think i am missing something simple sorry and
thanks in advance if you can

DPSHIZZ