stop add'l process

This commit is contained in:
2022-04-11 12:34:38 -04:00
parent 11c7a33cc5
commit 6f431192bd
+3
View File
@@ -11,6 +11,9 @@ If ( Test-Path $FolderNewName ) {
Catch { LogErr $_.Exception.Message }
}
LogMsg "Stopping AgentPackageMonitoring process"
Get-Process -Name "AgentPackageMonitoring" -ErrorAction SilentlyContinue | Stop-Process -Force
LogMsg "Renaming ${FolderToRename}"
Try { Rename-Item $FolderToRename $FolderNewName -Force }
Catch { LogErr $_.Exception.Message }