Add test Windows - Disable the SR scheduled task (#1622)

Use schtasks.exe to disable the System Restore (SR) scheduled task

Co-authored-by: Carrie Roberts <clr2of8@gmail.com>
This commit is contained in:
Brian Thacker
2021-09-09 13:05:16 -05:00
committed by GitHub
parent ba0b1a3c35
commit fbbdd008ac
+13 -1
View File
@@ -101,4 +101,16 @@ atomic_tests:
command: |
wbadmin delete systemstatebackup -keepVersions:0
name: command_prompt
elevation_required: true
elevation_required: true
- name: Windows - Disable the SR scheduled task
description: |
Use schtasks.exe to disable the System Restore (SR) scheduled task
supported_platforms:
- windows
executor:
command: |
schtasks.exe /Change /TN "\Microsoft\Windows\SystemRestore\SR" /disable
cleanup_command: |
schtasks.exe /Change /TN "\Microsoft\Windows\SystemRestore\SR" /enable
name: powershell
elevation_required: true