Skip to content

Cleanup After Executing Atomic Tests

Carrie Roberts edited this page Feb 11, 2020 · 1 revision

Many atomic tests include cleanup commands to remove temporary files generated during the execution of the test or to return setting to their previous or more secure values so that the test can be run again. Running the cleanup commands after every test execution is recommended. To see what the cleanup commands do, you can use the -ShowDetails option as describe on the List Atomic Tests page of this Wiki.

Run the Cleanup Commands for the Specified Test

Invoke-AtomicTest T1089 -TestNames "Uninstall Sysmon" -Cleanup

Run the Cleanup Commands for all atomic tests under a given Technique number

Invoke-AtomicTest T1089 -Cleanup