Created
November 12, 2021 15:23
-
-
Save KirillPashkov/59b1e0194147dc0b76f17a58aa093886 to your computer and use it in GitHub Desktop.
Create Windows Scheduled Task For Powershell Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
schtasks /create /tn Report_Task /tr "powershell -NoLogo -WindowStyle hidden -file Script.ps1" /sc Daily /st 18:00 /ru System |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More options for schtasks:
https://docs.microsoft.com/ru-ru/windows-server/administration/windows-commands/schtasks-create