Posts

Showing posts from November, 2022

Folder not visible in sealed mp

Another doozy. If you make a views  mp in SCOM and create a folder with nothing in it then seal it, you won't see it in the console. If you create an alert view or state view under it will work. Bizarrely, this doesn't happen to unsealed mps.

Set agent or gateway failover servers

This will setup an agent or gateway server to use a specified primary management server and failover server. Agent $Agent = Get-SCOMagent -Name "FQDN" $PrimaryServer = Get-SCOMManagementServer -Name "FQDN" $FailoverServer = Get-SCOMManagementServer -Name "FQDN" Set-SCOMParentManagementServer -Agent $Agent -PrimaryServer $PrimaryServer Set-SCOMParentManagementServer -Agent $Agent -FailoverServer $FailoverServer Gateway $GatewayServer = Get-SCOMGatewayManagementServer -Name "FQDN" $PrimaryServer = Get-SCOMManagementServer -Name "FQDN" $FailoverServer = Get-SCOMManagementServer -Name "FQDN" Set-SCOMParentManagementServer -GatewayServer $GatewayServer -PrimaryServer $PrimaryServer Set-SCOMParentManagementServer -GatewayServer $GatewayServer -FailoverServer $FailoverServer Add below line if you get this error: "The failover server xxx cannot be the same as the primary server." Set-SCOMParentManagementServer -Agent | $Gate