I’m not completely sure that I’ve ever needed to disable all discoveries in an MP…(some of them yes)…In most cases if I want none of the discoveries then I may as well just delete the MP. But since I was emailed the question, yes absolutely…like with my recent Rules and Monitors posts you can use that same code to disable Discoveries. Let’s get to it!

Read more

So last night I was on a call with a customer and during that conversation the question was asked, ‘Can we disable all rules in a management pack using PowerShell or the Console?’.

Well yes you can, although it’s a pretty drastic measure to disable everything…That said the task itself is pretty easy. Well, actually it’s pretty long winded if you use the console but yes it can be done…1 by 1, by 1, by 1… sigh. Be prepared to stay awhile if you use this method.

PowerShell is the way…let’s see how.

Read more

How can you get a list of SCOM 2016 Agentless Managed Computers using Windows PowerShell? Well actually it remains unchanged from SCOM 2012:

Get-SCOMAgentlessManagedComputer


Computer                   : Computer123.thescomlab.com
LastModified               : 2/9/2016 10:54:49 AM
Path                       :
Name                       : Computer123.thescomlab.com
DisplayName                : Computer123.thescomlab.com
HealthState                : Success
PrincipalName              : Computer123.thescomlab.com
ComputerName               : Computer123
Domain                     : THESCOMLAB
IPAddress                  : 10.129.60.130
ProxyAgentPrincipalName    : Computer456.thescomlab.com
Id                         : 965295ae-e898-42ba-4e9b-3151e67ed547
ManagementGroup            : TheSCOMLab01
ManagementGroupId          : d92144f5-7a03-c034-df13-e64ac311af4d

Today I was asked for a list of all Servers that we have configured in SCOM, plus the IP Addresses that it’s configured with. This is pretty easy to do and here’s how.

At the time I had open the SQL Management Studio so I chose to query the Operations Manager Database directly:

Use [OperationsManager]
SELECT DisplayName, IPAddress
FROM MT_Computer

Read more

One of the hotly anticipated features of SCOM 2016 is the new Maintenance Mode updates, or more specifically…Maintenance Schedules as they are known…the ability schedule a maintenance in the future! Prior to SCOM 2016 we had to contend with doing it manually, or scripting up a solution and triggering that via a scheduled task.

In the SCOM console the first thing you’ll notice in the Administration section is a new entry called “Maintenance Schedules”.

maintenance-schedules

 

 

 

 

 

 

 

 

 

Read more