Skip to content

Commit 6441c0d

Browse files
authored
Update Move-ListOfAgents.ps1
1 parent 64f77d7 commit 6441c0d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Powershell/Agents Failover/Move-ListOfAgents.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ foreach ($line in ($AgentList -split "`n"))
2626
{
2727
$i++
2828
$i = $i
29+
Write-Progress -Activity 'Running' -Status 'Script is executing' -PercentComplete $($i/$agents.count * 100)
2930
#Remove Failover Management Server
3031
Write-Output "($i/$(($AgentList.Trim() -split "`n").Count)) $($agent.DisplayName)`n Removing Failover: $(($agent.GetFailoverManagementServers()).DisplayName -join ", ")"
3132
$agent | Set-SCOMParentManagementServer -FailoverServer $null | Out-Null

0 commit comments

Comments
 (0)