do not end unrelated processes
This commit is contained in:
+1
-4
@@ -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'
|
||||
Reference in New Issue
Block a user