Finding OpsMgr Management Group Installation Date Using PowerShell
As part of what I’m working on at the moment, I need to find out when the OpsMgr 2012 management group was initially installed using PowerShell (the installation time of the first management server). To do so, I can either use the OpsMgr SDK or the OperationsManager PowerShell module. I’ve developed below scripts to run [...]
Using SCOM 2012 SDK to Retrieve Resource Pools Information
Today I needed to retrieve information about SCOM 2012 resource pools in a PowerShell script, I needed to do this directly via SDK, rather than using the OperationsManager PowerShell module. I couldn’t find any existing scripts via Google, so I spent some time playing with SDK and finally found it. Since it seems no one [...]
My First Impression on PowerShell Web Access
I ran up an instance of Windows Server 2012 in my test lab last night so I can play with various new features such as IPAM and PowerShell Web Access, etc. Today I configured this box as the PowerShell Web Access (PSWA) gateway. I have to say, I am very very impressed! The implementation is [...]
PowerShell Script To Enable SCOM Agent Proxy in a More Efficient Way
if you search on how to enable SCOM agent proxy for all your SCOM agents using PowerShell, you’ll get lots of posts and scripts that shows you how to do it in SCOM 2007 or 2012. In fact, I have written few back in the days. However, no matter if the script uses SCOM 2007 [...]
PowerShell Function: Get-WeekDayInMonth
Often, IT admins need to workout the first/second/third/fourth Mon/Tue/Wed/Thur/Fri/Sat/Sun of any given month. some good examples are: Prepare themselves for Microsoft’s patching Tuesday of each month Planning for any admin tasks caused by Day Light Saving time change So I wrote this simple function today to calculate the date for any given month & year. [...]
SCOM Enhanced Email Notification Script Version 2
Few years ago, I posted the SCOM Enhanced Email Notification Script in this blog and became well adopted by the community. Over the last week or so, I have spent most of my time at night re-writing this script and I have completed the new version (2.0) now. There are few reasons why I have [...]
Find out who is connected to your SCOM 2007 management group
As we all know, we can see how many concurrent SDK connections have been established on the RMS by looking at the Client Connections counter in OpsMgr SDK Service: To find out who are actually connected, you can use the SDK:
Scripting 101 For George
Yesterday at work, we were having a chat with George, the team leader of our infrastructure 3rd level support team. George told me since he’s a team leader, he doesn’t have to be technical ANYMORE, all he needs to do is to delegate. Then the topic somehow shifted to scripting and George said to me [...]
SCOM Alert Notification–Using Skype
Recently I’ve been wanting to setup SCOM notifications in my test environment that can reach me even when I’m not home.. However, I had two problem: I don’t have Lync / OCS servers in my lab and my home test lab does not have a registered domain name and so the Exchange server in the [...]
Using PowerShell Remote Sessions in a large SCOM environment
I have previously blogged using SCOM PowerShell snap-in and SDK client in a PowerShell remote session to avoid maintain a consistent SDK connection to RMS server. I just found out there might be a potential issue when using this technique to run scripts against a reasonably large SCOM management group. By default, the maximum amount [...]