We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a57298b commit 6a61aa8Copy full SHA for 6a61aa8
1 file changed
Powershell/Agents Failover/Check-AgentFailover.ps1
@@ -9,14 +9,14 @@
9
#region Script Start
10
Import-Module OperationsManager;
11
$agents = Get-SCOMAgent
12
-#endregion ScriptStart
13
# ===============================
14
15
16
#region Initiate Variables
17
$primaryOutput = @()
18
$i = 0
19
#endregion Initiate Variables
+#endregion ScriptStart
20
21
22
@@ -50,7 +50,9 @@ ForEach ($agent in $agents)
50
51
52
#region Output
53
+# Output to a table
54
$primaryOutput | ft *
55
+# Output to a csv file in C:\Temp\
56
$primaryOutput | Export-Csv -Path C:\Temp\AgentList_of_Primary_and_Failover.csv -NoTypeInformation
57
#endregion Output
58
0 commit comments