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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user