Skip to content

Commit 3b84fe8

Browse files
authored
Update Move-GrayAgents.ps1
1 parent afc62e3 commit 3b84fe8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Powershell/Agents Failover/Move-GrayAgents.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ foreach ($agent in $scomAgent)
2626
{
2727
$i++
2828
$i = $i
29+
Write-Progress -Activity 'Running' -Status 'Script is executing' -PercentComplete $($i/$scomAgent.count * 100)
2930
$scomAgentDetails = Get-SCOMAgent -ManagementServer $movefromManagementServer | Where { $_.DisplayName -match $agent.DisplayName }
3031
if ($scomAgentDetails)
3132
{

0 commit comments

Comments
 (0)