-
Notifications
You must be signed in to change notification settings - Fork 15
/
SCOM-MaintenanceMode.ps1
1272 lines (1157 loc) · 87.2 KB
/
SCOM-MaintenanceMode.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#Requires -Version 4
Param (
[string]$ManagementServer
)
Set-StrictMode -Version 2
Remove-Variable * -Exclude ManagementServer -ErrorAction SilentlyContinue
Clear-Host
Write-Host ''
[string]$script:appName = ' SCOM Maintenance Mode Tool'
Write-Host " Starting$script:appName..."
[Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms') | Out-Null
[Reflection.Assembly]::LoadWithPartialName('System.Data') | Out-Null
[Reflection.Assembly]::LoadWithPartialName('System.Drawing') | Out-Null
[System.Drawing.Font]$sysFont = [System.Drawing.SystemFonts]::MessageBoxFont
[System.Drawing.Font]$sysFontBold = New-Object 'System.Drawing.Font' ($sysFont.Name, $sysFont.SizeInPoints, [System.Drawing.FontStyle]::Bold)
[System.Windows.Forms.Application]::EnableVisualStyles()
[System.Collections.ArrayList]$script:objectList = @() # Holds all SCOM Server Objects
[boolean]$script:Verified = $false
[string] $script:GroupBy = 'Domain Name' # Default 'Group By' option
[System.Windows.Forms.TabPage]$script:tb1 = $null # Holds
[System.Windows.Forms.TabPage]$script:tb2 = $null # The
[System.Windows.Forms.TabPage]$script:tb3 = $null # Tab
[System.Windows.Forms.TabPage]$script:tb4 = $null # Pages
###################################################################################################
## ##
## Functions ##
## ##
###################################################################################################
Function Write-Log ([string]$Message)
{
Add-Content -Path 'SCOM-MaintenanceMode.Log' -Value $Message
}
Function Load-MaintenanceModeReasons
{
# Maintenance Mode Reason (Planned And Unplanned)
[hashtable]$script:mmReasonP = @{
'Other' = [Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason]::PlannedOther ;
'Hardware: Maintenance' = [Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason]::PlannedHardwareMaintenance ;
'Hardware: Installation' = [Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason]::PlannedHardwareInstallation ;
'Operating System: Reconfiguration' = [Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason]::PlannedOperatingSystemReconfiguration ;
'Application: Maintenance' = [Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason]::PlannedApplicationMaintenance ;
'Application: Installation' = [Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason]::ApplicationInstallation ;
'Security Issue' = [Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason]::SecurityIssue
}
[hashtable]$script:mmReasonU = @{
'Other' = [Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason]::UnplannedOther ;
'Hardware: Maintenance' = [Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason]::UnplannedHardwareMaintenance ;
'Hardware: Installation' = [Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason]::UnplannedHardwareInstallation ;
'Operating System: Reconfiguration' = [Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason]::UnplannedOperatingSystemReconfiguration ;
'Application: Maintenance' = [Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason]::UnplannedApplicationMaintenance ;
'Application: Unresponsive' = [Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason]::ApplicationUnresponsive ;
'Application: Unstable' = [Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason]::ApplicationUnstable ;
'Loss Of Network Connectivity' = [Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason]::LossOfNetworkConnectivity
}
}
Function Update-ServerList
{
$script:objectList.Clear()
$objects = (Get-SCOMMonitoringObject -Class (Get-SCOMClass -DisplayName 'Computer') | Select-Object Id, DisplayName, HealthState, IsAvailable, InMaintenanceMode)
ForEach ($item In $objects)
{
$lstItem = New-Object 'System.Windows.Forms.ListViewItem'
$lstItem.Name = $item.Id
$lstItem.Text = $item.DisplayName.Split('.')[0].ToLower()
$lstItem.Checked = $false
Switch ($item.HealthState)
{
'Success' { If ($item.IsAvailable -eq $True) { $lstItem.ImageIndex = 1 } Else { $lstItem.ImageIndex = 2 }; Break }
'Warning' { $lstItem.ImageIndex = 3 ; Break }
'Error' { $lstItem.ImageIndex = 4 ; Break }
'Uninitialized' { $lstItem.ImageIndex = 5 ; Break }
Default { $lstItem.ImageIndex = -1 }
}
# SubItems[1] = Maintenance Mode
If ($item.InMaintenanceMode -eq $True) { $lstItem.SubItems.Add('ICON|6') } Else { $lstItem.SubItems.Add('') }
# SubItems[2] = Domain Name
If ($item.DisplayName.Contains('.')) { $lstItem.SubItems.Add($item.DisplayName.SubString($lstItem.Text.Length).ToLower()) } Else { $lstItem.SubItems.Add(' No Domain') }
$script:objectList.Add($lstItem)
$lstItem = $null
}
$objects = $null
If ($tab_Pages.SelectedTab -eq $script:tb4) { Search-ServerList -SearchString $txt_t4_01.Text }
}
Function Search-ServerList ([string]$SearchString)
{
If ($SearchString.Length -eq 1) { Return }
If ([string]::IsNullOrEmpty($script:objectList) -eq $True)
{
$lst_t4_01.Items.Clear()
$lst_t4_01.ShowGroups = $False
$lst_t4_01.CheckBoxes = $False
$lst_t4_01.Items.Add("N", "", -1)
$lst_t4_01.Items.Add("N", "Server list has not yet been retrieved.", -1)
$lst_t4_01.Items.Add("N", "Click 'Update List' below...", -1)
$lst_t4_01.Enabled = $False
Return
}
Switch ($SearchString.ToLower())
{
'!s' { $found = ($script:objectList | Where-Object { ($_.ImageIndex -eq 1) -or ($_.ImageIndex -eq 2) }); Break }
'!w' { $found = ($script:objectList | Where-Object { $_.ImageIndex -eq 3 }); Break }
'!e' { $found = ($script:objectList | Where-Object { $_.ImageIndex -eq 4 }); Break }
'!u' { $found = ($script:objectList | Where-Object { $_.ImageIndex -eq 5 }); Break }
'!m' { $found = ($script:objectList | Where-Object { $_.SubItems[1].Text -eq 'ICON|6' }); Break }
'!c' { $found = ($script:objectList | Where-Object { $_.Checked -eq $True }); Break }
Default { $found = ($script:objectList | Where-Object { $_.Text.ToLower() -like "*$SearchString*".ToLower() }) }
}
$lst_t4_01.Items.Clear()
If ([string]::IsNullOrEmpty($found) -eq $True)
{
$lst_t4_01.Enabled = $False
$lst_t4_01.ShowGroups = $False
$lst_t4_01.CheckBoxes = $False
$lst_t4_01.Items.Add("N", "", -1)
$lst_t4_01.Items.Add("N", "No servers match your search query.", -1)
}
Else
{
$lst_t4_01.Enabled = $True
$lst_t4_01.ShowGroups = $True
$lst_t4_01.CheckBoxes = $True
$lst_t4_01.Items.AddRange($found)
}
$lbl_t4_02.Text = "$($lst_t4_01.Items.Count) Shown`r`n$($script:objectList.Count) Total"
Group-SearchResults -ByType $script:GroupBy
}
Function Get-Reason ([string]$Reason, [boolean]$Planned)
{
$return = New-Object 'Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason'
If ($Planned -eq $True) { $return = $script:mmReasonP[$Reason] } Else { $return = $script:mmReasonU[$Reason] }
Return $return
}
Function Get-HealthStatus ([string]$Value)
{
Switch ($Value)
{
'1' { Return 'Success' } # Green Tick
'2' { Return 'Not Monitored' } # GreyScale Tick
'3' { Return 'Warning' } # Yellow Triangle
'4' { Return 'Error' } # Red Cross
'5' { Return 'Uninitialized' } # Hollow Circle
Default { Return 'Unknown' } # Eh.?
}
}
Function Group-SearchResults ([string]$ByType)
{
If ($lst_t4_01.Items.Count -eq 0) { Return } # Empty List
If ($lst_t4_01.Items[0].Name -eq 'N') { Return } # No Search Results
$Groups = New-Object 'System.Collections.ArrayList'
$lst_t4_01.Groups.Clear()
If ($ByType -ne 'None')
{
$lst_t4_01.ShowGroups = $True
ForEach ($item In $lst_t4_01.Items)
{
Switch ($ByType)
{
'Domain Name' { $Groups.Add($item.SubItems[2].Text); Break }
'Health Status' { $Groups.Add((Get-HealthStatus -Value $item.ImageIndex)); Break }
}
}
$Groups = $Groups | Select-Object -Unique | Sort-Object
$Groups | ForEach { $lst_t4_01.Groups.Add($_, ($_.TrimStart('.'))) }
ForEach ($item In $lst_t4_01.Items)
{
Switch ($ByType)
{
'Domain Name' { $item.Group = $lst_t4_01.Groups[$item.SubItems[2].Text]; Break }
'Health Status' { $item.Group = $lst_t4_01.Groups[(Get-HealthStatus -Value $item.ImageIndex)]; Break }
}
}
}
Else
{
$lst_t4_01.ShowGroups = $False
}
}
###################################################################################################
# Owner Draw ListView Sub Icons ###################################################################
$SubIcons_DrawColumnHeader = {
[System.Windows.Forms.DrawListViewColumnHeaderEventArgs]$e = $_
$e.DrawDefault = $True
$e.DrawBackground()
$e.DrawText()
}
$SubIcons_DrawSubItem = {
[System.Windows.Forms.DrawListViewSubItemEventArgs]$e = $_
If ($e.SubItem.Text.Length -le 5) {
$e.DrawDefault = $True
}
Else
{
If ($e.SubItem.Text.Contains('|') -eq $True)
{
[System.Drawing.Image]$icon = ($imgList_Search.Images[$e.SubItem.Text.Split('|')[1] -as [int]])
[int]$xPos = ($e.SubItem.Bounds.X + (($e.SubItem.Bounds.Width / 2) -as [int]) - (($icon.Width / 2) -as [int]))
[int]$yPos = ($e.SubItem.Bounds.Y + (($e.SubItem.Bounds.Height / 2) -as [int]) - (($icon.Height / 2) -as [int]))
}
If ($e.Item.Selected -eq $true) {
$r = New-Object 'System.Drawing.Rectangle'($e.Bounds.Left, $e.Bounds.Top, $e.Bounds.Width, $e.Bounds.Height)
$e.Graphics.FillRectangle([System.Drawing.SystemBrushes]::Highlight, $r)
$e.Item.ForeColor = [System.Drawing.SystemColors]::HighlightText
}
Else {
$e.Item.ForeColor = [System.Drawing.SystemColors]::WindowText
}
Switch ($e.SubItem.Text.Substring(0,5).ToUpper())
{
'ICON|'
{
$e.DrawDefault = $false
$r = New-Object 'System.Drawing.Rectangle'($xPos, $yPos, $icon.Width, $icon.Height)
$e.Graphics.DrawImage($icon, $r)
}
Default { $e.DrawDefault = $True }
}
}
}
###################################################################################################
## ##
## Main Form ##
## ##
###################################################################################################
#region Main Form
Function Display-MainForm
{
#region FORM STARTUP / SHUTDOWN
$InitialFormWindowState = New-Object 'System.Windows.Forms.FormWindowState'
$MainFORM_StateCorrection_Load = { $MainForm.WindowState = $InitialFormWindowState }
$MainFORM_Load = {
# Change font to a nicer one
Write-Log -Message ''
Write-Log -Message "Welcome ($(Get-Date))"
ForEach ($control In $MainForm.Controls) { $control.Font = $sysFont }
ForEach ($tab In $tab_Pages.TabPages) { ForEach ($control In $tab.Controls) { $control.Font = $sysFont } }
# Set some specific fonts
$lbl_t0_01.Font = $sysFontBold
$lbl_t2_01.Font = $sysFontBold
$lbl_t2_02.Font = $sysFontBold
$lbl_t2_03.Font = $sysFontBold
$rad_t2_0x_CheckedChanged.Invoke()
$script:tb1 = $tab_Page1; $tab_Pages.TabPages.Remove($tab_Page1)
$script:tb2 = $tab_Page2; $tab_Pages.TabPages.Remove($tab_Page2)
$script:tb3 = $tab_Page3; $tab_Pages.TabPages.Remove($tab_Page3)
$script:tb4 = $tab_Page4; $tab_Pages.TabPages.Remove($tab_Page4)
$txt_t0_01.Text = $ManagementServer
}
$MainFORM_FormClosing = [System.Windows.Forms.FormClosingEventHandler] {
$quit = [System.Windows.Forms.MessageBox]::Show($MainFORM, 'Are you sure you want to exit this tool.?', $script:appName, 'YesNo', 'Question')
If ($quit -eq 'No') { $_.Cancel = $True }
Write-Log -Message 'Good-Bye.'
}
$Form_Cleanup_FormClosed = {
$chk_t0_01.Remvoe_CheckedChanged($chk_t0_01_CheckedChanged)
$btn_t0_01.Remove_Click($btn_t0_01_Click)
$btn_t1_01.Remove_Click($btn_t1_01_Click)
$btn_t1_02.Remove_Click($btn_t1_02_Click)
$btn_t1_03.Remove_Click($btn_t1_03_Click)
$chk_t2_01.Remove_CheckedChanged($chk_t2_01_CheckedChanged)
$btn_t2_01.Remove_Click($btn_t2_01_Click)
$btn_t2_03.Remove_Click($btn_t2_03_Click)
$btn_t2_04.Remove_Click($btn_t2_04_Click)
$btn_t3_01.Add_Click($btn_t3_01_Click)
$btn_t3_02.Add_Click($btn_t3_02_Click)
$txt_t4_01.Remove_TextChanged($txt_t4_01_TextChanged)
$lnk_t4_01.Remove_LinkClicked($lnk_t4_01_LinkClicked)
$lst_t4_01.Remove_MouseUp($lst_t4_01_MouseUp)
$lst_t4_01.Remove_DrawSubItem($SubIcons_DrawSubItem)
$lst_t4_01.Remove_DrawColumnHeader($SubIcons_DrawColumnHeader)
$tsm_t4_sub_01.Remove_Click($tsm_t4_sub_0x_Click)
$tsm_t4_sub_02.Remove_Click($tsm_t4_sub_0x_Click)
$tsm_t4_sub_04.Remove_Click($tsm_t4_sub_0x_Click)
$btn_t4_02.Remove_Click($btn_t4_02_Click)
$btn_t4_03.Remove_Click($btn_t4_03_Click)
$tab_Pages.Remove_SelectedIndexChanged($tab_Pages_SelectedIndexChanged)
Try {
$sysFont.Dispose()
$sysFontBold.Dispose()
} Catch {}
$MainFORM.Remove_Load($MainFORM_Load)
$MainFORM.Remove_Load($MainFORM_StateCorrection_Load)
$MainFORM.Remove_FormClosing($MainFORM_FormClosing)
}
#endregion
###################################################################################################
#region FORM Scripts
#region MAIN FORM SCRIPTS
$tab_Pages_SelectedIndexChanged = {
If ($tab_Pages.SelectedTab -eq $script:tb4) { Search-ServerList -SearchString $txt_t4_01.Text }
}
#endregion
#region TAB 0 SCRIPTS
$chk_t0_01_CheckedChanged = {
If ($chk_t0_01.Checked -eq $true)
{
$txt_t0_02.Text = ('{0}\{1}' -f $env:UserDomain.ToLower(), $env:UserName.ToLower())
$txt_t0_03.Text = ''
$txt_t0_02.Enabled = $False
$txt_t0_03.Enabled = $false
}
Else
{
$txt_t0_02.Text = ''
$txt_t0_03.Text = ''
$txt_t0_02.Enabled = $True
$txt_t0_03.Enabled = $True
}
}
$btn_t0_01_Click = {
$btn_t0_01.Enabled = $False
$MainFORM.Cursor = 'WaitCursor'
$btn_t0_01.Text = 'Loading Module...'
Write-Host ' Loading Operations Manager module - this could take a while'
$btn_t0_01.Refresh()
If ((Get-Module -ListAvailable -Name 'OperationsManager' -ErrorAction SilentlyContinue) -eq $null)
{
$MainFORM.Cursor = 'Default'
Write-Host ' Error: Operations Manager module not found'
[System.Windows.Forms.MessageBox]::Show($MainFORM, "Operations Manager module was not found", 'Module', 'OK', 'Error')
$btn_t0_01.Text = 'Connect'
$btn_t0_01.Enabled = $True
Return
}
Import-Module -Name 'OperationsManager' -WarningAction SilentlyContinue | Out-Null
[boolean]$errorCondition = $False
$btn_t0_01.Text = 'Connecting To Server...'
Write-Host ' Connecting To Management Server'
$btn_t0_01.Refresh()
Try
{
If ($chk_t0_01.Checked -eq $True)
{
# TODO: Get current user credential object
Write-Log -Message ('User {0}, Logging on to {1}' -f $env:UserName, $txt_t0_01.Text)
$scomConnection = New-SCOMManagementGroupConnection -ComputerName $($txt_t0_01.Text) -PassThru
}
Else
{
[string] $username = ($txt_t0_02.Text)
[securestring]$password = ConvertTo-SecureString -String ($txt_t0_03.Text) -AsPlainText -Force
[pscredential]$scomCred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $username, $password
Write-Log -Message ('User {0}, Logging on to {1}' -f $txt_t0_02.Text, $txt_t0_01.Text)
$scomConnection = New-SCOMManagementGroupConnection -ComputerName $($txt_t0_01.Text) -Credential $scomCred -PassThru
}
}
Catch [System.Net.Sockets.SocketException]
{
[System.Windows.Forms.MessageBox]::Show($MainFORM, "Invalid server name, ensure this server exists and is reachable.", $script:appName, 'OK', 'Error')
$errorCondition = $True
}
Catch
{
[System.Windows.Forms.MessageBox]::Show($MainFORM, $_.Exception.Message, $script:appName, 'OK', 'Error')
$errorCondition = $True
}
If ($errorCondition -eq $False)
{
$tab_Pages.TabPages.Add($script:tb1) # Server Entry
$tab_Pages.TabPages.Add($script:tb4) # Search
Load-MaintenanceModeReasons
$chk_t2_01_CheckedChanged.Invoke()
$tab_Page0.Enabled = $False # Welcome
$tab_Pages.SelectedTab = $script:tb1
Write-Host ' Connected'
$MainFORM.Cursor = 'Default'
$btn_t0_01.Text = 'Complete'
}
Else
{
Write-Host ' Error Connecting'
$btn_t0_01.Text = 'Connect'
$btn_t0_01.Enabled = $True
}
}
#endregion
#region TAB 1 SCRIPTS
$txt_t1_01_LostFocus = {
[string[]]$list = @()
$txt_t1_01.Text.Trim().Split("`n") | ForEach { If ($_.Trim().Length -gt 5) { $list += ($_.Trim()) } }
$list = $list | Sort-Object | Select-Object -Unique | Where-Object { $_ }
$txt_t1_01.Clear()
If ([string]::IsNullOrEmpty($list) -eq $False) { $txt_t1_01.Text = [string]::Join("`r`n", $list) }
}
$txt_t1_01_TextChanged = {
$script:Verified = $False
}
$btn_t1_01_Click = { # Verify List
$MainFORM.Cursor = 'WaitCursor'
# Update object list if we need to
If ($script:objectList.Count -eq 0) { Update-ServerList }
ForEach ($item In (($txt_t1_01.Text).Split("`n")))
{
If ([string]::IsNullOrEmpty($item) -eq $False)
{
$found = ($script:objectList | Where-Object { "$($_.Text)$($_.SubItems[2].Text)" -like "$($item.Trim())*".ToLower() })
If ([string]::IsNullOrEmpty($found) -eq $True)
{
$txt_t1_01.Text = $txt_t1_01.Text.Replace($item, "X-$item")
}
Else
{
If ($item -ne "$($found.Text)$($found.SubItems[2].Text)") {
$txt_t1_01.Text = $txt_t1_01.Text.Replace($item, "$($found.Text)$($found.SubItems[2].Text)`r`n".ToUpper())
}
}
}
}
$script:Verified = $True
$MainFORM.Cursor = 'Default'
}
$btn_t1_02_Click = { # Search SCOM
$tab_Pages.SelectedTab = $script:tb4
}
$btn_t1_03_Click = { # NEXT
If ([string]::IsNullOrEmpty($txt_t1_01.Text) -eq $True) { Return }
ForEach ($item In ($txt_t1_01.Text).Split("`n")) { If ($item.StartsWith('X-')) { Return } }
If ($script:Verified -eq $False)
{
$btn_t1_01_Click.Invoke()
ForEach ($item In ($txt_t1_01.Text).Split("`n")) { If ($item.StartsWith('X-')) { Return } }
If ($script:Verified -eq $False)
{
[System.Windows.Forms.MessageBox]::Show($MainFORM, 'Could not verify the server list',$script:appName, 'OK', 'Warning')
Return
}
}
If ($tab_Pages.TabPages.Contains($script:tb2) -eq $False) { $tab_Pages.TabPages.Insert(2, $script:tb2) }
$tab_Pages.SelectedTab = $script:tb2
}
#endregion
#region TAB 2 SCRIPTS
$chk_t2_01_CheckedChanged = {
$cmo_t2_01.Items.Clear()
If ($chk_t2_01.Checked -eq $True) { $cmo_t2_01.Items.AddRange(($script:mmReasonP.Keys | Sort-Object)) }
Else { $cmo_t2_01.Items.AddRange(($script:mmReasonU.Keys | Sort-Object)) }
$cmo_t2_01.SelectedIndex = 0
}
$rad_t2_0x_CheckedChanged = {
$nud_t2_01.Enabled = $rad_t2_01.Checked
$dtp_t2_01.Enabled = $rad_t2_02.Checked
}
$btn_t2_03_Click = {
If ($tab_Pages.TabPages.Contains($script:tb3) -eq $False) { $tab_Pages.TabPages.Insert(3, $script:tb3) }
$tab_Pages.SelectedTab = $script:tb3
ForEach ($item In ($txt_t1_01.Text.Trim().Split("`n")))
{
[System.Windows.Forms.ListViewItem]$found = ($script:objectList | Where-Object { "$($_.Text)$($_.SubItems[2].Text)".ToLower() -eq $item.ToLower().Trim() })
If ([string]::IsNullOrEmpty($found) -eq $False)
{
$lvTemp = New-Object 'System.Windows.Forms.ListViewItem'
$lvTemp.Name = $found.Name
$lvTemp.Text = $found.Text
$lvTemp.ImageIndex = 0
$lvTemp.SubItems.Add($found.SubItems[1].Text)
$lvTemp.SubItems.Add($found.SubItems[2].Text)
$lvTemp.SubItems.Add('')
$lst_t3_01.Items.Add($lvTemp)
$lvTemp = $null
}
}
ForEach ($item In $lst_t3_01.Items)
{
If ($item.SubItems[1].Text -eq 'ICON|6')
{
Try {
$StopMaintenance = (Get-SCOMClassInstance -Id $item.Name)
$StopMaintenance.StopMaintenanceMode(([DateTime]::Now.ToUniversalTime()))
$item.SubItems[3].Text = 'ICON|7'
} Catch { $item.SubItems[3].Text = 'ICON|8' }
}
}
}
$btn_t2_04_Click = {
If ([string]::IsNullOrEmpty($txt_t2_01.Text) -eq $True) { Return }
If ($tab_Pages.TabPages.Contains($script:tb3) -eq $False) { $tab_Pages.TabPages.Insert(3, $script:tb3) }
$tab_Pages.SelectedTab = $script:tb3
ForEach ($item In ($txt_t1_01.Text.Trim().Split("`n")))
{
[System.Windows.Forms.ListViewItem]$found = ($script:objectList | Where-Object { "$($_.Text)$($_.SubItems[2].Text)".ToLower() -eq $item.ToLower().Trim() })
If ([string]::IsNullOrEmpty($found) -eq $False)
{
$lvTemp = New-Object 'System.Windows.Forms.ListViewItem'
$lvTemp.Name = $found.Name
$lvTemp.Text = $found.Text
$lvTemp.ImageIndex = 0
$lvTemp.SubItems.Add($found.SubItems[1].Text)
$lvTemp.SubItems.Add($found.SubItems[2].Text)
$lvTemp.SubItems.Add('')
$lst_t3_01.Items.Add($lvTemp)
$lvTemp = $null
}
}
ForEach ($item In $lst_t3_01.Items)
{
If ($item.SubItems[1].Text -eq 'ICON|6')
{
[boolean]$MaintenanceMode = $False
Try {
# If already in maintenance mode, set new time/comment/reason
$MaintenanceModeEntry = (Get-SCOMMaintenanceMode -Instance $item.Name)
$MaintenanceMode = (Set-SCOMMaintenanceMode -MaintenanceModeEntry $MaintenanceModeEntry -EndTime (Get-Date).AddMinutes($nud_t2_01.Text) -Comment $txt_t2_01.Text -PassThru `
-Reason (Get-Reason -Reason $cmo_t2_01.Text -Planned $chk_t2_01.Checked)).InMaintenanceMode
} Catch { $MaintenanceMode = $False; Write-Host $_ }
}
Else
{
Try {
# Start new maintenance mode
$MaintenanceModeEntry = (Get-SCOMClassInstance -Id $item.Name)
$MaintenanceMode = (Start-SCOMMaintenanceMode -Instance $MaintenanceModeEntry -EndTime (Get-Date).AddMinutes($nud_t2_01.Text) -Comment $txt_t2_01.Text -PassThru `
-Reason (Get-Reason -Reason $cmo_t2_01.Text -Planned $chk_t2_01.Checked)).InMaintenanceMode
} Catch { $MaintenanceMode = $False; Write-Host $_ }
}
# Get result
If ($MaintenanceMode -eq $True) { $item.SubItems[3].Text = 'ICON|7' } Else { $item.SubItems[3].Text = 'ICON|8' }
}
}
#endregion
#region TAB 3 SCRIPTS
$btn_t3_01_Click = {
# TODO: View Log File
}
$btn_t3_02_Click = {
$MainFORM.Close()
}
#endregion
#region TAB 4 SCRIPTS
$txt_t4_01_TextChanged = { Search-ServerList -SearchString $txt_t4_01.Text }
$lnk_t4_01_LinkClicked = {
[System.Text.StringBuilder]$msg = ''
$msg.AppendLine("SEARCH QUICK HELP GUIDE")
$msg.AppendLine("The search field is not case-sensitive")
$msg.AppendLine("")
$msg.AppendLine("Filter on server status by using:")
$msg.AppendLine(" !s`tSuccess")
$msg.AppendLine(" !w`tWarning")
$msg.AppendLine(" !e`tError")
$msg.AppendLine(" !u`tUninitialized")
$msg.AppendLine(" !m`tIn Maintenance")
$msg.AppendLine(" !c`tCurrently Selected (Checked)")
[System.Windows.Forms.MessageBox]::Show($MainFORM, $msg.ToString(), $script:appName, 'OK', 'Information')
}
$lst_t4_01_MouseUp = {
[System.Windows.Forms.MouseEventArgs]$e = $_
If ($e.Button -ne 'Right') { Return }
$cms_t4_01.Show($lst_t4_01, $e.X, $e.Y)
}
Function tsm_t4_sub_0x_Click([object]$Sender)
{
$tsm_t4_sub_01.Checked = $False
$tsm_t4_sub_02.Checked = $False
$tsm_t4_sub_04.Checked = $False
Switch ($Sender.Text)
{
'Domain Name' { $tsm_t4_sub_01.Checked = $True; Break }
'Health Status' { $tsm_t4_sub_02.Checked = $True; Break }
'None' { $tsm_t4_sub_04.Checked = $True; Break }
}
$script:GroupBy = $Sender.Text
Group-SearchResults -ByType $Sender.Text
}
$btn_t4_02_Click = { $tab_Pages.SelectedTab = $script:tb1 } # CANCEL
$btn_t4_03_Click = {
ForEach ($item In $script:objectList) { If ($item.Checked -eq $True) { $txt_t1_01.Text += "`r`n$($item.Text)`r`n" } }
$txt_t1_01_LostFocus.Invoke()
$tab_Pages.SelectedTab = $script:tb1
}
#endregion
#endregion
###################################################################################################
#region FORM ITEMS
#region MAIN FORM
$MainFORM = New-Object 'System.Windows.Forms.Form'
$MainFORM.AutoScaleDimensions = '6, 13'
$MainFORM.AutoScaleMode = 'None'
$MainFORM.ClientSize = '469, 422' # 475 x 450
$MainFORM.FormBorderStyle = 'FixedSingle'
$MainFORM.MaximizeBox = $False
$MainFORM.MinimizeBox = $False
$MainFORM.StartPosition = 'CenterScreen'
$MainFORM.Text = $script:appName
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////
//+DbF3/4Mi8/72fkP+JbVz/knxu/+/t6v///////Pz8//z8/P/8/Pz/+fn5//T09P/u7u7/5ubm/9zc3P/R0dH/yMjI/8PDw/9aWlr/SUlK9QwMDBkAAAAAlE05/61xWv+MSTH/lFlC/5xhSv+tcVr/jEkx/5RN
Of+cYUr/nGFK/4xJMf+MSTH/nGFK/6VpUv+cYUr/jEkx/5RROf+lZVL/nGFK/4xNOf+MSTH/hGZb/3x8fP////////////////+zpJr/emFR/+DIvP+7m4z/h2lY/5V+cP/x7ev////////////8/Pz//Pz8//n5
+f/29vb/7u7u/+bm5v/Z2dn/z8/P/8XFxf+vr6//RERE/2ZmZpcAAAAAlE05/7WCc/+UWUL/jEUx/4Q8Kf+laVL/lFlC/5RROf+EPCn/jEUx/5RZQv+UWUL/hEEp/5RVQv+UVUL/nFlC/5RROf+EPCn/hDwp/4Q8
Kf+EPCn/d2pn/7Ozs///////////////////////0cjB/4htXv/gyLz/vJuK/4RnVf+QeWr/7+3q//////////////////z8/P/5+fn/9PT0/+3t7f/i4uL/1NTU/8nJyf/ExMT/UVFS/1RUVN4AAAAAlE05/5xl
Uv97NCH/lFE5/5xdSv+MRTH/ezQh/4xFMf+UUUL/jEk5/3s0If+EOCn/lFE5/5RRQv+EOCn/ezQh/3s0If97NCH/ezQh/3s0If97NCH/dG9u/+Pj4////////////////////////////9fMx/+Ea1n/4Mi8/7OS
gf+AYE7/jHRl/+/r6P/////////////////8/Pz/+fn5//Hx8f/n5+f/29vb/8/Pz//Hx8f/enp7/0tLS/QAAAAAlE05/7WCc/+UTTn/ezQh/4xJMf+MSTH/lE05/4Q8Kf97MCH/hDgp/5RNOf+MRTH/ezAh/3sw
If97MCH/ezAh/3swIf97MCH/ezAh/3swIf97MCH/cXBw///////////////////////////////////////VzMT/e2JR/+DIvP+mhXX/blI+/35pWf/t6uf////////////8/Pz//Pz8//b29v/r6+v/39/f/9PT
0//Jycn/oKCg/0RERfwAAAAAlE05/5xhUv97NCH/lEk5/5xdSv97NCH/ezAh/4xFMf+MSTn/hDwp/3swIf97MCH/ezAh/3swIf97MCH/ezAh/3swIf97MCH/ezAh/3swIf97MCH/cXFx////////////////////
////////////////////////0cjB/3BXRv/gyLz/lnln/2lNOv99Z1f/18/I/9XNyP/UzMX/4tzY//b29v/u7u7/4+Pj/9fX1//MzMz/tra2/z8/P/8AAAAAlE05/7V9c/+MSTn/ezAh/5RJOf+MSTn/jEkx/3s0
If97MCH/ezAh/3swIf97MCH/ezAh/3swIf97MCH/ezAh/3swIf97MCH/ezAh/3swIf97MCH/eXl5/////////////////////////////////////////////////83EvP9pUD7/4Mi8/7KUhP92XEv/bFFA/2lP
Pv9lSjj/a1E//6eXi//x8fH/5OTk/9jY2P/Pz8//vb29/0BAQP8AAAAAlE05/6VhUv+EPCn/lE05/5RNOf97MCH/ezAh/3swIf97MCH/ezAh/3swIf97MCH/ezAh/3swIf97MCH/ezAh/3swIf97MCH/ezAh/3sw
If97MCH/hYSD///////////////////////////////////////////////////////LwLn/a1RC/+DIvP+4l4X/pIV1/5d7av+0lof/mntq/2BFM/+ejID/5ubm/9nZ2f/Q0ND/t7e3/05OTvsAAAAAlE05/7WC
c/+USTn/ezAh/3swIf97MCH/ezAh/3swIf97MCH/ezAh/3swIf97MCH/ezAh/3swIf97MCH/ezAh/3swIf97MCH/ezAh/3swIf97MCH/ioWE//X19f//////////////////////////////////////////////
////////w7iv/4tuXP+9m4r/lnlp/3JWRf9YPi3/WkAu/0wyIv9VPCz/5OTk/9nZ2f/R0dH/oKCg/1dXV/AAAAAAlE05/6VlUv+ENCH/hDQh/4Q0If+ENCH/hDQh/4Q0If+ENCH/hEEx/4Q4Kf+ENCH/hDQh/4Q0
If+ENCH/hDQh/4Q0If+ENCH/hDQh/4Q0If+ENCH/h3p2/93d3f//////////////////////////////////////////////////////4tvV/3xiUf/gyLz/ooV1/3NbS//r6Ob/7ejm/+fj4P/f29j/4+Pj/9nZ
2f/U1NT/fX19/1lZWdwAAAAAlE05/61pWv+EOCn/hDgp/4Q4Kf+EOCn/hDgp/4Q4Kf+UWUr/nG1j/5RdUv+EOCn/hDgp/4Q4Kf+EOCn/hDgp/4Q4Kf+EOCn/hDgp/4Q4Kf+EOCn/iGZf/6ampv/+/v7/////////
////////////////////////////////////////4tvX/35lVP/gyLz/rZKF/4BoV/////////////n5+f/u7u7/4+Pj/9nZ2f/X19f/VVVV/19fX6QAAAAAlE05/61tWv+EPCn/hDwp/4Q8Kf+EPCn/hDwp/5Rd
Uv+lcWP/5+Pn/72WlP+UWUr/hDwp/4Q8Kf+EPCn/hDwp/4Q8Kf+EPCn/hDwp/4Q8Kf+EPCn/hD0q/4qFhP/n5+f/////////////////////////////////////////////////5uDc/5F5Z//gyLz/x6+l/31n
Vv+UhHn/mop+/5qKfv+3qZ//4uLi/9vb2/+VlZX/TU1N9A4ODhoAAAAAlE05/61xY/+MQTH/jEEx/4xBMf+MQTH/nGFS/6V1a//n5+f/7+vv/9bLzv+cYVL/jEEx/4xBMf+MQTH/jEEx/4xBMf+MQTH/jEEx/4xB
Mf+MQTH/jEEx/4duaf+tra3//////////////////////////////////////////////////////72tof+OdGH/4Mi8/+DIvP/gyLz/dFZE/0YtHf+3p5//4uLi/9HR0/9SUlL+W1tbvgAAABgAAAAAlE05/7V1
Y/+cYVL/nGVa/5xlWv+cZVr/pXVr/+/n5//v5+f/1r69/+/r7/+cZVr/jEUx/4xFMf+MRTH/jEUx/4xFMf+MRTH/jEUx/4xFMf+MRTH/jEUx/4xFMf+IgYD/8vLy////////////////////////////////////
///////////////////Et63/moNz/4pxXv+KcF7/p5aJ/8e8tP/q6ur/3d3d/3Jycv9gWFX+AAAAIQAAABgAAAAAlE05/7WGc/+1ioT/59vW/+fb1v/n29b/7+vv/+/r7/+teXP/rXVr/+/v7/+9koz/nF1S/5RJ
Of+USTn/lEk5/5RJOf+USTn/lEk5/5RJOf+USTn/lEk5/5RJOf+YcGb/m5ub//z8/P////////////////////////////////////////////////////////////////////////////T09P/t7e3/kpKS/11a
WP+JWk35AAAAIQAAABgAAAAAlE05/72Ke/+9mpT/7+/v/+/v7//v7+//7+fn/62Cc/+laVr/pWla/+/n5//ez87/pWla/5RNOf+UTTn/lE05/5RNOf+UTTn/lE05/5RNOf+UTTn/lE05/5xRQv+lcWP/uri6/5qX
lv/5+fn///////////////////////////////////////////////////////////////////////Ly8v+RkZH/WlZV/6KDeP+UTTn3AAAAIQAAABgAAAAAlE05/72Cc/+lbWP/pW1j/6VtY/+lbWP/pW1j/6Vt
Y/+cUUL/pW1j/97Hxv/37+//pW1j/5xRQv+cUUL/nFFC/5xVQv+lbWP/pW1j/6VtY/+lbWP/pW1j/6VtY/+9loz/9/P3/5Rxav+Gfnz/0M/P////////////////////////////////////////////////////
////////w8PD/3Jycv9oYWD/k2Fa/86ajP+UTTn3AAAAIQAAABgAAAAAlE05/72Gc/+cVUL/nFVC/5xVQv+cVUL/nFVC/5xVQv+cVUL/pWVS/7WGe//39/f/vY6E/6VlWv+cVUL/nFVC/6VtY//OrqX/9/P3//fz
9//38/f/9+/v/7WGe//WtrX/9+/v/6VxY/+cVUL/g29q/4uIh//c3Nz//v7+////////////////////////////3d3d/6SkpP96enr/cGpo/4RrZP+lXUr/nFlK/86elP+UTTn3AAAAIQAAABgAAAAAlE05/72K
e/+cWUr/nFlK/5xZSv+cWUr/nFlK/5xZSv+cWUr/nFlK/611a//38/f/3s/O/611a/+cWUr/nFlK/611a//n087/9/f3/+/j5//v4+f/9/P3//fz9//n19b/7+fn/611a/+cWUr/nFlK/5xZS/+Nd3T/kpCQ/4yM
jP+Mi4v/g4OD/3x8fP+CgoL/hoGA/4x9eP+Xd23/rW1b/6VlUv+tcWP/pWFS/86ilP+UTTn3AAAAIQAAABgAAAAAlE05/72Oe/+lXUr/pV1K/6VdSv+lXUr/pV1K/6VdSv+lXUr/pV1K/611a//n09b/9/P3/611
a/+lXUr/pV1K/611a//v5+f/59fW/611a/+tdWv/tYJz//fz9///+///59fW/611a/+lXUr/pV1K/6VdSv+tdWv/1r69///7//+teWv/rXVj/86yrf//9/f/rXVr/6VdSv+1dWP/pV1K/7V1Y/+lYVL/tXVr/86e
lP+UTTn3AAAAIQAAABgAAAAAlE05/72Oe/+lXUr/pV1K/6VdSv+lXUr/pV1K/6VdSv+lXUr/pV1K/61tY/+9loz//////7WKe/+laVr/pV1K/615a///9/f/3sO9/615a/+lXUr/rXlr/7WCc///9/f/3sO9/615
a/+lXUr/pV1K/6VdSv+lZVL/tX1z///7///Wvr3/rXlr/+fTzv/38+//rXlr/6VdSv+1eWv/pV1K/7V1Y/+lXUr/tXlr/86mlP+UTTn3AAAAIQAAABgAAAAAlE05/8aShP+lYVL/pWFS/6VhUv+lYVL/pWFS/6Vh
Uv+lYVL/pWFS/6VhUv+teWv///v//+fPzv+teWv/pWFS/615a///////zqac/61xY/+lYVL/pWFS/615a/+1gnv/vZKM/61pWv+lYVL/pWFS/6VhUv+lYVL/rXlr/+/j5//38/f/rXlr//fr5//v397/rXlr/6Vh
Uv+1eWv/pWFS/7V5a/+lYVL/tXlr/86qnP+UTTn3AAAAIQAAABgAAAAAlE05/8aahP+taVL/pWVS/6VlUv+lZVL/pWVS/6VlUv+lZVL/pWVS/6VlUv+tfXP/79/e//fz9/+tfXP/rW1a/72OhP//////tYp7/6Vp
Wv+lZVL/pWVS/6VlUv+laVr/rW1j/6VlUv+lZVL/pWVS/6VlUv+lZVL/rXVr/8ainP//////vZaM///39//ex8b/rX1z/6VlUv+1fWv/rW1a/72Gc/+1eWP/zp6M/9aypf+UTTn3AAAAIQAAABgAAAAAlE05/86e
hP+tbVL/rW1S/61tUv+tbVL/rW1S/61tUv+tbVL/rWlS/61pUv+tdWv/zqac//////+1hnv/rXlr/86yrf//////tX1z/6VlUv+lZVL/pWVS/6VlUv+lZVL/pWVS/61lUv+taVL/rWlS/61pUv+taVr/pWVS/7V9
c///+/f/79/e///////OqqX/rXVr/7V9a//OmoT/zp6E/86ehP/OnoT/1rac/966rf+UTTn3AAAAIQAAABgAAAA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/ezAh/3swIf99S0H/1dXV////////////////////////////9PLw/6KQhP+8o5T/nH5t/4tvXv+Vd2f/fmVU/8jAu//d3d3/yMjI/29vb/2UTTlVpmpY/4k8
LP9+MSH/fjEh/34xIf9+MyP/fjQl/34xIf9+MSH/fjEh/34xIf9+MSH/fjEh/4JMQP/Mycj/////////////////////////////////7uvp/56Ief+5m4v/gGRU/4p3a/+DcWX/o5eP/93d3f+9vb3/bW1t8ZRN
OVWjX03/hDcm/4Q3Jv+ENyb/hDcm/5BTRP+QVUn/hDcm/4Q3Jv+ENyb/hDcm/4Q3Jv+ENyb/hUk8/6ifnf/////////////////////////////////18/H/n4x//861qP+LcmL/+ff3//X08//n5uX/3Nzc/6+v
r/9fX1/PlE05VaVjUf+HPiz/hz4s/4hBL/+VW07/y7Kt/9G8vf+RUkL/hz4s/4c+LP+HPiz/hz4s/4c+LP+HPiz/iGhh/+Li4v////////////////////////////n49/+6qp//yLCj/66Xiv+jj4P/g3Bi/8W8
tf/b29z/cXFx9URERFyUTTlVqGdV/5dXSf+XWUz/mmBU/8Wln//o3t//5Nrd/5dZS/+MRDH/jEQx/4xEMf+MRDH/jEQx/4xEMf+LTj3/tbKx//z8/P////////////////////////////Dt6v+ynpH/qpKC/6GJ
ev+aiHz/29fW/6urrP9YU1LGKysrLJRNOVWsdGH/yKum/+ri3v/r5OP/4NPT/6pzaf/Yw7//uo+I/5hSQv+USjn/lEo5/5RKOf+USjn/lEo5/5ZLO/+fgnr/ycjI//7+/v//////////////////////////////
//////////////f39/+0tLP/eG9s/4RQQrEAAAAblE05Va9yYf+zhX3/vpiS/76Xkf+vf3X/oV9R/8+wq//WvLj/nVlK/5lQP/+ZUT//n2JV/59iVf+fYlX/oWNX/8SmoP+wnpz/vbq5//X09P//////////////
///////////////////y8vL/sLCw/3lqaP+qgXb/i0g1sAAAABuUTTlVr3Rh/5xWRf+cVkX/nFZF/5xWRf+eWkj/rXZp/+fa2f+yfXT/nFZF/6RnW//hzsn/9fDz//Xv8v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nb1j/r3lj/39va//T09P/saWd/+Xk4//r6+v/6urq/+Pj
4//Y2Nj/ycnJ/6ioqP9MTEzRAAAAFJRNOVKpclv/ml9G/55jTP+hZ07/o2hM/6FmTP+rdVr/oWlQ/6FqTv+pclj/jm1g/8jIyP+/s6z/uZ2O/6aUiP/4+Pf/+vr6//f39//t7e3/3Nzc/8nJyf+CgoL/SkpKeJRN
OYChZVD/kE86/51fSP+STzn/klI8/5BROv+aXUj/lFE5/5JQPP+IRC//i4B8///////s6Ob/rZiL/7iai/+nk4f/+/v6//7+/v/5+fn/7e3t/9jY2P/AwMD/UlJS3ZRNOYCYWkj/jks1/4pEL/+IQS//iEEv/4hA
Lf+EOiv/ezIh/3syIf97MiH/srCw////////////9fLx/62Yi/+ukID/mod5//v6+f/+/v7/9/f3/+Pj4//Nzc3/a2tr/JRNOYCWV0j/kEg3/4Q+K/+EPSv/fTMj/3swIf97MCH/ezAh/3swIf97MCH/urq6////
//////////////Tx8P+ijX//pIl4/455a/+ejYH/u6+m/+rq6v/T09P/fX19/5RNOYCdWkr/iD8t/3swIf97MCH/ezAh/3swIf97MCH/ezAh/3swIf97MCH/wb+////////////////////////y7+7/ppGC/6yM
e/+FaVn/aE07/6+lnv/V1dX/gICA+pRNOYCXTz7/hDYl/4Q2Jf+IPi3/jlFE/4Q2Jf+ENiX/hDYl/4Q2Jf+ENiX/pZmW////////////////////////////sJ+U/8Sqnf+3q6L/8/Hw/+Xk4//X19f/Y2Nj4JRN
OYCbV0b/iD8t/4xHNf+xi4L/2szO/5BOPv+IPy3/iD8t/4g/Lf+IPy3/iFxS/+Xl5f//////////////////////zcG5/8WtoP+0n5L/fGZX/83Fwf+lpaX/S0tLeZRNOYCvemv/wqCY/8aoo//fzcz/2MPC/6Bm
Wv+QRzX/kEc1/5BHNf+QRzX/kEc1/6ugnf/+/v7//////////////////////9fOyP/FuK//2NHM/9LS0v9uYFv9AAAAHZRNOYC3hXn/yq6p/8qsp/+lal3/xqGb/8iln/+YTz7/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AAAAAAAAAAAEAAA==')
$MainFORM.Add_Load($MainFORM_Load)
$MainFORM.Add_FormClosing($MainFORM_FormClosing)
$imgList_Search = New-Object 'System.Windows.Forms.ImageList'
$imgList_Search.TransparentColor = 'Transparent'
$imgList_Search_BinaryFomatter = New-Object 'System.Runtime.Serialization.Formatters.Binary.BinaryFormatter'
$imgList_Search_MemoryStream = New-Object 'System.IO.MemoryStream' (,[byte[]][System.Convert]::FromBase64String('
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0yLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAB8HwAAAk1TRnQBSQFMAgEBCQEAAUABAAFAAQABEAEAARABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFA
AwABMAMAAQEBAAEgBgABMP8A/wAgAAIkASkBNwEqATEBeAHlAisBMwFJEAACKwEzAUkBQgFDAaIB5QIjASgBNdQAAiIBJwE1ASQBJgGSAe8BLQEwAeoB/wEmASkBgQH3AisBMgFKCAACKwExAUkBJgEpAYQB9wEt
ATEB6gH/ASQBJgGSAe8CIgEnATXQAAEpATABegHkASoBLwHpAf8CAAHzAf8BEwEVAe0B/wEkASgBawH3AisBMQFKAisBMQFKASUBKAFsAfcBEwEVAe0B/wIAAfMB/wEtATEB6QH/AjsBjQHj0AABKwEsATUBSQEf
ASYBngH3AQ0BEgHiAf8CAAHiAf8BEQEUAdwB/wEeASQBWwH4AR8BJgFaAfcBEQEUAdwB/wIAAeIB/wEPARMB4gH/ASMBJwGeAfcCLgE3AUnUAAIrATUBSQEaASMBnwH3AQsBEQHTAf8CAAHQAf8BDAESAcgB/wEM
ARIByQH/AgAB0AH/AQsBEgHTAf8BGwE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DFAAFCAU0BPgcAAT4DAAEoAwABQAMAATADAAEBAQABAQUAAYABARYAA/8BAAL/BgAC/wYAAeMBxwYAAcEBgwYAAcABAwYAAcABAwYAAeABBwYAAfABDwYAAfABDwYAAeABBwYA
AcABAwYAAcABAwYAAcEBgwYAAeMBxwYAAv8GAAL/BgAO/wH4Af8B4AEHAfABDwHwAQ8B8AH/AcABAwHAAQMB4AEHAeABfwHAAQMBwAEDAcABAwHAAX8BwAEDAcABAwHAAQMBgAE/AcABAwHAAQMBwAEDAYQBHwHA
AQMBwAEDAcABAwGOAR8BwAEDAcABAwHAAQMB/gEPAcABAwHAAQMBwAEDAf8BBwHAAQMBwAEDAcABAwH/AQcBwAEDAcABAwHAAQMB/wGDAcABAwHAAQMB4AEHAf8BwQHgAQcB8AEPAfABDwH/AeEH/wHhB/8B8wj/
AeABBwb/AeABBwHwAQ8B8AEPAcABAwGAAQEBwAEDAcABAwHAAQMBgAEBAcABAwHAAQMBwAEDAYABAQHAAQMBwAEDAcABAwGAAQEBwAEDAcABAwHAAQMBgAEBAcABAwHAAQMBwAEDAYABAQHAAQMBwAEDAeABBwGA
AQEBwAEDAcABAwHwAQ8BgAEBAcABAwHAAQMB8AEPAYABAQHAAQMBwAEDAfgBHwGAAQEBwAEDAcABAwH4AR8BgAEBAfABDwHwAQ8B/AE/AYABAQ7/Cw=='))
$imgList_Search.ImageStream = $imgList_Search_BinaryFomatter.Deserialize($imgList_Search_MemoryStream)
$imgList_Search_BinaryFomatter = $null
$imgList_Search_MemoryStream = $null
$tab_Pages = New-Object 'System.Windows.Forms.TabControl'
$tab_Pages.Location = ' 12, 12'
$tab_Pages.Size = '443, 396'
$tab_Pages.Padding = ' 12, 6'
$tab_Pages.SelectedIndex = 0
$tab_Pages.TabIndex = 0
$tab_Pages.Add_SelectedIndexChanged($tab_Pages_SelectedIndexChanged)
$MainFORM.Controls.Add($tab_Pages)
$tab_Page0 = New-Object 'System.Windows.Forms.TabPage'('Welcome'); $tab_Pages.Controls.Add($tab_Page0)
$tab_Page1 = New-Object 'System.Windows.Forms.TabPage'('Server List'); $tab_Pages.Controls.Add($tab_Page1)
$tab_Page2 = New-Object 'System.Windows.Forms.TabPage'('Options'); $tab_Pages.Controls.Add($tab_Page2)
$tab_Page3 = New-Object 'System.Windows.Forms.TabPage'('Results'); $tab_Pages.Controls.Add($tab_Page3)
$tab_Page4 = New-Object 'System.Windows.Forms.TabPage'('Search'); $tab_Pages.Controls.Add($tab_Page4)
#endregion
#region TAB 0 - Introduction
$lbl_t0_01 = New-Object 'System.Windows.Forms.Label'
$lbl_t0_01.Location = ' 12, 12'
$lbl_t0_01.Size = '411, 21'
$lbl_t0_01.Text = "Welcome to the $script:appName"
$tab_Page0.Controls.Add($lbl_t0_01)
$lbl_t0_02 = New-Object 'System.Windows.Forms.label'
$lbl_t0_02.Location = ' 12, 39'
$lbl_t0_02.Size = '411, 42'
$lbl_t0_02.Text = 'This tool will allow you to put any number of SCOM managed servers into maintenance mode quickly and easily.'
$tab_Page0.Controls.Add($lbl_t0_02)
$lbl_t0_03 = New-Object 'System.Windows.Forms.label'
$lbl_t0_03.Location = ' 12, 136'
$lbl_t0_03.Size = ' 94, 23'
$lbl_t0_03.Text = 'Server :'
$lbl_t0_03.TextAlign = 'MiddleLeft'
$tab_Page0.Controls.Add($lbl_t0_03)
$txt_t0_01 = New-Object 'System.Windows.Forms.TextBox'
$txt_t0_01.Location = '112, 136'
$txt_t0_01.Size = '211, 23'
$tab_Page0.Controls.Add($txt_t0_01)
$lbl_t0_04 = New-Object 'System.Windows.Forms.label'
$lbl_t0_04.Location = ' 12, 168'
$lbl_t0_04.Size = ' 94, 23'
$lbl_t0_04.Text = 'Username :'
$lbl_t0_04.TextAlign = 'MiddleLeft'
$tab_Page0.Controls.Add($lbl_t0_04)
$txt_t0_02 = New-Object 'System.Windows.Forms.TextBox'
$txt_t0_02.Location = '112, 168'
$txt_t0_02.Size = '211, 23'
$tab_Page0.Controls.Add($txt_t0_02)
$lbl_t0_05 = New-Object 'System.Windows.Forms.label'
$lbl_t0_05.Location = ' 12, 200'
$lbl_t0_05.Size = ' 94, 23'
$lbl_t0_05.Text = 'Password :'
$lbl_t0_05.TextAlign = 'MiddleLeft'
$tab_Page0.Controls.Add($lbl_t0_05)
$txt_t0_03 = New-Object 'System.Windows.Forms.TextBox'
$txt_t0_03.Location = '112, 200'
$txt_t0_03.Size = '211, 23'
$txt_t0_03.PasswordChar = ([char]9679).ToString() # TODO: Change for Blob symbol
$tab_Page0.Controls.Add($txt_t0_03)
$chk_t0_01 = New-Object 'System.Windows.Forms.CheckBox'
$chk_t0_01.Location = '112, 229'
$chk_t0_01.Size = '211, 23'
$chk_t0_01.Text = 'Use Windows Credentials'
$chk_t0_01.Checked = $False
$chk_t0_01.Add_CheckedChanged($chk_t0_01_CheckedChanged)
$tab_Page0.Controls.Add($chk_t0_01)
$btn_t0_01 = New-Object 'System.Windows.Forms.Button'
$btn_t0_01.Location = '112, 279'
$btn_t0_01.Size = '211, 35'
$btn_t0_01.Text = 'Connect'
$btn_t0_01.Add_Click($btn_t0_01_Click)
$tab_Page0.Controls.Add($btn_t0_01)
$lbl_t0_06 = New-Object 'System.Windows.Forms.label'
$lbl_t0_06.Location = ' 12, 342'
$lbl_t0_06.Size = '411, 21'
$lbl_t0_06.Text = 'For any bugs or comments, email support@myrandomthoughts.co.uk'
$lbl_t0_06.TextAlign = 'BottomCenter'
$lbl_t0_06.Enabled = $False
$tab_Page0.Controls.Add($lbl_t0_06)
#endregion
#region TAB 1 - Server List
$lbl_t1_01 = New-Object 'System.Windows.Forms.Label'
$lbl_t1_01.Location = ' 12, 12'
$lbl_t1_01.Size = '411, 32'
$lbl_t1_01.Text = 'In most cases the fully qualified server name will be required. If in doubt, either select objects using the search function or click "Verify"'
$tab_Page1.Controls.Add($lbl_t1_01)
$txt_t1_01 = New-Object 'System.Windows.Forms.TextBox'
$txt_t1_01.Location = ' 12, 63'
$txt_t1_01.Size = '411, 225'
$txt_t1_01.Multiline = $True
$txt_t1_01.ScrollBars = 'Vertical'
$txt_t1_01.Add_LostFocus($txt_t1_01_LostFocus)
$txt_t1_01.Add_TextChanged($txt_t1_01_TextChanged)
$tab_Page1.Controls.Add($txt_t1_01)
$btn_t1_01 = New-Object 'System.Windows.Forms.Button'
$btn_t1_01.Location = ' 12, 294'
$btn_t1_01.Size = '125, 25'
$btn_t1_01.Text = 'Verify List'
$btn_t1_01.Add_Click($btn_t1_01_Click)
$tab_Page1.Controls.Add($btn_t1_01)
$btn_t1_02 = New-Object 'System.Windows.Forms.Button'
$btn_t1_02.Location = ' 12, 325'
$btn_t1_02.Size = '125, 25'
$btn_t1_02.Text = 'Search SCOM'
$btn_t1_02.Add_Click($btn_t1_02_Click)
$tab_Page1.Controls.Add($btn_t1_02)