hide error for process not found
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ $RenameSuffix = "-Old"
|
|||||||
$FolderNewName = "${FolderToRename}${RenameSuffix}"
|
$FolderNewName = "${FolderToRename}${RenameSuffix}"
|
||||||
|
|
||||||
# Kill processes that can interfere
|
# Kill processes that can interfere
|
||||||
Get-Process -Name 'reg' | Stop-Process -Force
|
Get-Process -Name 'reg' -ErrorAction SilentlyContinue | Stop-Process -Force
|
||||||
|
|
||||||
LogMsg "Stopping Atera agent"
|
LogMsg "Stopping Atera agent"
|
||||||
Stop-Service -Name 'AteraAgent' -Force
|
Stop-Service -Name 'AteraAgent' -Force
|
||||||
|
|||||||
Reference in New Issue
Block a user