Skip to content

Commit 5ab2e9c

Browse files
authored
Update Remove-OrphanedMGHSWObjects.ps1
1 parent 0e53c32 commit 5ab2e9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Powershell/Quick Fixes/Remove-OrphanedMGHSWObjects.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#Original Author: Rogério Barros
22
#Edited by: Blake Drumm (blakedrumm@microsoft.com)
33
# Modified on: August 18th, 2022
4+
#
5+
# This script supports both Management Servers and Agents Orphaned
46
$MSWatcherClass = get-scomclass -name "Microsoft.SystemCenter.ManagementServerWatcher", "Microsoft.SystemCenter.AgentWatcher"
57
$MSClass = get-scomclass -name "Microsoft.SystemCenter.ManagementServer", "Microsoft.SystemCenter.Agent"
68

0 commit comments

Comments
 (0)