Skip to content

Commit 6a61aa8

Browse files
authored
Update Check-AgentFailover.ps1
1 parent a57298b commit 6a61aa8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Powershell/Agents Failover/Check-AgentFailover.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
#region Script Start
1010
Import-Module OperationsManager;
1111
$agents = Get-SCOMAgent
12-
#endregion ScriptStart
1312
# ===============================
1413

1514
# ===============================
1615
#region Initiate Variables
1716
$primaryOutput = @()
1817
$i = 0
1918
#endregion Initiate Variables
19+
#endregion ScriptStart
2020
# ===============================
2121

2222
# ===============================
@@ -50,7 +50,9 @@ ForEach ($agent in $agents)
5050

5151
# ===============================
5252
#region Output
53+
# Output to a table
5354
$primaryOutput | ft *
55+
# Output to a csv file in C:\Temp\
5456
$primaryOutput | Export-Csv -Path C:\Temp\AgentList_of_Primary_and_Failover.csv -NoTypeInformation
5557
#endregion Output
5658
# ===============================

0 commit comments

Comments
 (0)