do not end unrelated processes

This commit is contained in:
2022-04-11 12:46:31 -04:00
parent 3bdcabb695
commit 7f0026c74b
+1 -4
View File
@@ -19,7 +19,4 @@ Try { Rename-Item $FolderToRename $FolderNewName -Force }
Catch { LogErr $_.Exception.Message }
LogMsg "Starting Atera agent"
Start-Service -Name 'AteraAgent'
LogMsg "Forcefully ending all reg.exe and conhost.exe processes"
Get-Process | Where { ($_.Name -like 'reg') -or ($_.Name -like 'conhost') } | Stop-Process -Force
Start-Service -Name 'AteraAgent'