also kill AgentPackageTaskManagement

This commit is contained in:
2022-04-13 13:35:35 -04:00
parent 42168d90ef
commit b271d5b5ca
+1 -1
View File
@@ -3,7 +3,7 @@ $RenameSuffix = "-Old"
$FolderNewName = "${FolderToRename}${RenameSuffix}"
# Kill processes that can interfere
Get-Process -Name 'reg' -ErrorAction SilentlyContinue | Stop-Process -Force
'reg', 'AgentPackageTaskManagement' | ForEach-Object { Get-Process -Name $_ -ErrorAction SilentlyContinue | Stop-Process -Force }
LogMsg "Stopping Atera agent"
Stop-Service -Name 'AteraAgent' -Force