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 }
|
Catch { LogErr $_.Exception.Message }
|
||||||
|
|
||||||
LogMsg "Starting Atera agent"
|
LogMsg "Starting Atera agent"
|
||||||
Start-Service -Name 'AteraAgent'
|
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
|
|
||||||
Reference in New Issue
Block a user