In this recipe, we will see how to schedule a job using PowerShell cmdlets.
Scheduling jobs in PowerShell
Getting ready
This recipe may involve some of the capabilities that work well only with super-user privileges. Therefore, perform the following steps:
- Log in to the Terminal using super-user privileges.
- Open a PowerShell console using the pwsh command.
- Import the module (refer to the recipe, Installing the CronTab PowerShell module).
How to do it...
You need a script that needs to be scheduled. If you don't have a script, use a simple command:
- First, check...