How to Run PowerShell Scripts on a Schedule!

preview_player
Показать описание
This video covers running scripts in 3 different ways.
In PowerShell
Right Click Run
Scheduled Task

00:00 Intro
00:29 Execution Policy
01:30 Run Script in PowerShell
02:30 Run script with right click
03:40 Local Security Policy "Logon as batch job"
04:35 Open Task Scheduler
04:58 Create Folder
05:14 Create New Task
05:16 General Tab Overview
06:15 Create Schedule "Every Friday at 8 a.m.
06:50 Setup action to run script
08:02 Add User to run the task
08:30 Manually Test the task
Рекомендации по теме
Комментарии
Автор

Nice tutorial. One comment. I did everything the same you did. For some reason my task does not run using Task Scheduler. When I run through CLI in VSCode simply works.
My ExecutionPolicy is RemoteSigned, W11, PowerShell Core... any thoughts to help me?

douglaspiresmartins
visit shbcf.ru