"Introduction to the Environment"
Operating system: Windows Server r2,64-bit operating system
PowerShell Version: PowerShell 1.0
Script Location: C:\BACKUP.PS1
Startup directory: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\PowerShell.exe
"Step Diagram"
1. Open Windows Task Scheduler
2. Click "Create Task"
3. Enter "name", "Configuration" to select your corresponding system configuration.
4. Select the "Triggers" tab and click on the "New" button
5. According to your needs, after filling out the trigger, click OK to return
6. Click on the "Actions" tab and click on the "New" button
7. In the "program or script" location, add our PowerShell startup directory; "Add parameter" location, adding our script location, as shown in
Post-Program script: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\PowerShell.exe
Add parameter (optional):-noninteractive "C:\BackUp.ps1"
8. Click "Confirm" to complete the task plan additions.
At this point, we are using the Windows Task Scheduler to create a PowerShell command that is automatically executed.
Windows Task Scheduler creates schedules, and periodically executes PowerShell commands