SCOM – Add network device to network discovery rule via PowerShell

I posted a powershell script here to create a new network discovery rule. You can only create one rule per management server, so once created you just update with new devices. The script bellows doesn’t create the discovery rule, just adds a single device to a current rule.   # Name: Add-Device-to-Network-Discovery-Rule.ps1 # Written by:…


Windows Server 2016 – Nano Server and how it has changed already

One of the things that I was most excited about working with in Windows Server 2016 was Nano Server. The ability to have super fast, super scalable servers to run infrastructure roles (to me) seemed like an awesome addition particularly given that it was the smallest server footprint we’d ever delivered and booted in record…

0

SCOM – Remotely update Management Group configuration on SCOM agent via PowerShell

One of my customers installed the agent via SCCM and it had a typo in the management group name. This script removes the current management group configuration the agent is assigned to, and adds a new management group configuration with the correct management group name. $OLDMG = “oldMG” $newMG = “newMG1” $MS = “serverOM” $Agentlist…


SCOM – Create new network discovery rule via PowerShell

I recently had to setup a lot of SCOM management groups with the same network discovery rule. I soon found out there isn’t a powershell cmdlet for it. Of course, it’s the kind of thing you don’t really need that often, as only one discovery rule is allowed per management server. Anyway, I needed one,…


Change OMS Log Analytics Retention Period in the Azure Portal

Where previously you could only change the retention settings for OMS Log Analytics using PowerShell, now you can do it using the Azure Portal. The Log Analytics retention settings allow you to configure a minimum of 31 days (if not using a free tier) up to 730 days. Login to https://portal.azure.com  then go to Log…