SCOM Maintenance Mode PowerShell

SCOM 2012’de maintenance mode alımını otomatikleştirmek için aşağıdaki script bloğu kullanılabilir.

Import-Module OperationsManager
$Instance = Get-SCOMClassInstance -Name “scom.domain.local”
$Time = ((Get-Date).Addhours(1))
Start-SCOMMaintenanceMode -Instance $Instance -EndTime $Time -Comment “Bakim calismasi.” -Reason “SecurityIssue”

Leave a Reply

Your email address will not be published. Required fields are marked *

77 + = 80