wait for uninstall to complete before continuing

This commit is contained in:
2022-12-15 13:43:46 -05:00
parent a3825836f7
commit 1c5d7e26d6
+1 -1
View File
@@ -4,5 +4,5 @@ Import-Module -Name MSP360
## Uninstall the agent
LogMsg "Uninstalling Emberkom Cloud Backup agent"
Try { Remove-MBSAgent -RemoveSettings -Force }
Try { Remove-MBSAgent -RemoveSettings -Force -Wait }
Catch { LogErr $_.Exception.Message }