diff --git a/Uninstall-AteraAgent.ps1 b/Uninstall-AteraAgent.ps1 index f3629b6..eb6b6ff 100644 --- a/Uninstall-AteraAgent.ps1 +++ b/Uninstall-AteraAgent.ps1 @@ -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" \ No newline at end of file +LogMsg "Finished uninstalling Atera Agent" + +# Delete this script +Remove-Item $MyInvocation.MyCommand.Path -Force \ No newline at end of file