Beyond Impact Blog

Using MomCertImport.exe  in a Powershell Workflow to Automate Certificate Deployment on SCOM Gateways

Nov 9, 2017 7:58:21 AM / by Cole McDonald posted in powershell, SCOM, automation

0 Comments

In my continuing efforts to fully automate a SCOM environmental deployment, I've been tackling how to go about automating registering the SCOM gateways to the Management Server Pool.  I've got most of the process done, but the certificate registration has tried to elude me as the MOMcertImport tool doesn't work directly from Powershell.  Luckily, Powershell allows us to work around that using the Start-Process cmdlet to run an executable application in its own cmd.exe instance.
Read More

Using SCOM to Automate the OMS Workspace Fix

Sep 22, 2017 2:34:32 PM / by Cole McDonald posted in powershell, SCOM, Azure, OMS

0 Comments

Last time (Fixing OMS Workspaces) we looked a way to repair or distribute OMS Workspace settings using Powershell.  Wouldn't it be nice if we could leverage SCOM's access to individual machines to be able to keep them attached to the workspaces?  If we could pull this off, we could minimize the amount of time we're blind to each server in our environment.  Why use SCOM to push OMS settings?

Read More

Azure OMS Workspace Settings Disappearing

Sep 15, 2017 11:00:08 AM / by Cole McDonald posted in powershell, SCOM, Azure, OMS

0 Comments

We've seen some interesting behaviors in Azure with the Healthservice Agent which provides the connection to SCOM in our hosted environment and OMS in Azure.  The management groups registered with the service (Healthservice - Microsoft Management Agent - MMA for short) seem to disappear every once in a while.  We suspect it happens during updates to the agent (extension if you're deploying from the Azure portal).

Read More

Recursive SCOM Subgroup Member function

Aug 18, 2017 11:04:44 AM / by Cole McDonald posted in powershell, SCOM, Utility Functions

0 Comments

Sounds Fancy!  The problem I was having was that SCOM doesn't have a default way to look at all of the members of a group/subgroup tree in a convenient way.  The Get-SCOMGroup cmdlet doesn't have an option to recursively search any subgroups it finds.  It requires all kids of clunky Powershell to enumerate all of that if you need it.  I needed it.

Read More

SCOM - Can't add manually installed agents

Jul 21, 2017 3:48:50 PM / by Cole McDonald posted in powershell, SCOM, automation

4 Comments

Straight to the code: https://github.com/cole-mcdonald/SCOM-GhostedObjects

Read More

Setting SCOM Gateway Failover using Powershell

Apr 3, 2017 1:00:00 PM / by Cole McDonald posted in system center operations manager, powershell, SCOM

0 Comments

Microsoft's System Center Operations Manager has much more power than the interface allows access to.  Of exceeding importance in an enterprise setting is building high availability into our systems.  SCOM includes much of this by default in the management structures.  The interface no longer reflects these settings, but they're still available to us through Powershell.  Here's a little script I use in our environment for bringing new gateways online.

Read More

Maintenance Mode and Time Zones in SCOM 2012

Jan 9, 2017 1:00:00 PM / by Cole McDonald posted in system center operations manager, powershell, SCOM, Maintenance

0 Comments

One ongoing issue we were dealing with at Beyond Impact  was that the maintenance mode not resolving itself at the end of its time correctly.  I suspect it may have something to do with timezones applied in the interface vs. UTC stored in the DB, but resolving them through powershell was relatively easy.
Read More

Short Term Rapid Deployment Emergency Gray State Fix

Dec 29, 2016 12:26:52 PM / by Cole McDonald posted in system center operations manager, powershell, SCOM

0 Comments

Our Operations Manager installation has been through a few sets of hands since the contracted installer put it in place 4 or so years ago.  I inherited it as a fully operational black box a year ago.  I was handed the keys and tasked with figuring out how it all went together.  I'd come from the Linux world (technically FreeBSD), I'd never even heard of System Center, much less Operations Manager.  I knew nothing of the history of the program itself or the suite of apps which had been acquired by Microsoft and bundled together into an enterprise DevOps platform.

Read More

Post SCOM Alerts to Microsoft Teams

Dec 23, 2016 3:43:34 PM / by Cole McDonald posted in system center operations manager, powershell, webhook, SCOM, Microsoft Teams

1 Comment

Connecting System Center to Microsoft Teams (straight to the code: https://github.com/cole-mcdonald/Blog_Code/blob/master/Send-SCOM2Teams.ps1)

Read More

Subscribe to Email Updates

Recent Posts