also kill AgentPackageTaskManagement
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user