make self destruct

This commit is contained in:
2022-04-16 13:20:01 -04:00
parent 9397d93fcd
commit b13a0dae7d
+4 -1
View File
@@ -115,4 +115,7 @@ $Directories | ForEach-Object { Remove-Path -Path $_ }
LogMsg "Unmount HKEY_CLASSES_ROOT registry hive"
Remove-PSDrive -Name HKCR
LogMsg "Finished uninstalling Atera Agent"
LogMsg "Finished uninstalling Atera Agent"
# Delete this script
Remove-Item $MyInvocation.MyCommand.Path -Force