Unresponsive SCOM 2007 R2 Console

Over the last few weeks, I’ve been configuring a brand new SCOM environment at work to monitor the SCCM infrastructure. This is a very small SCOM implementation, it only consists 1 RMS (SCOM 2007 R2 with Cumulative Update 4) and 1 SQL server hosting OperationsManager DB (SCOM Reporting is yet to be implemented). Both RMS and SQL servers are running on Windows 2008 R2 RTM. Currently, there is only 1 SCOM console installed, which is running locally on the RMS server. From very beginning, I noticed the SCOM console randomly became unresponsive and hang when I create /modify objects (i.e.

Continue reading

SCCM Health Check PowerShell Script Updated to Version 3.3

I have updated the SCCM Health Check Script again. The latest version is now 3.3. Below is what’s been updated since my last post for version 3.1: Fixed the bug where when using DOTNET sending emails to multiple recipients, it only sends to the first recipient from the list. It now zip the txt attachment to zip file before sending it. this is to improve the performance and avoid sending large attachments. Added functionality to check all current active package distribution Able to create exemptions for DNS suffix check. This can be configured in the XML. (this is required at

Continue reading

PowerShell Script to locate SCCM objects in SCCM console

There are many object types in SCCM that supports folders in the console. Even though the object can be easily located using the search function, often we need to find out which folder does a particular object (i.e. package, advertisement, etc) reside.  At work, we use folders to separate objects for different business units and differnet IT service providers. Therefore, there are many times I need to find out where exactly is the object located. I wrote this script today called Locate-SCCMObject.PS1 Syntax: .\Locate-SCCMObject <SCCM Central Site Server> <SCCM Object ID>: Example: Using the script: From SCCM Console: The output

Continue reading

Creating a collection in SCCM for “all SCOM 2007 R2 agents without Cumulative Update 4 installed”

Recently I’ve been working on deploying a SCOM environment to monitor SCCM infrastructure. Initially we used SCCM to deploy SCOM agents out to all SCCM servers as it is our preferred method to deploy any apps. By doing so, SCOM agents are considered “Manually Installed” in SCOM, therefore I cannot simply approve updates in SCOM console and get it pushed out in SCOM. I needed to make a collection for all computers that have SCOM 2007 R2 agents installed but without CU4 so it can be used to deploy CU4 to SCOM agents. Here’s the query: Description: All computers that

Continue reading

Listening to episodes from SystemCenterPodcast.com on Android devices

An old colleague of mine, Dan Kregor has started a new site systemcenterpodcast.com As the name suggests, it provides podcasts for Microsoft System Center related topics. Dan has made the efforts to make the podcast available on iTune and Zune. Today I was playing with the new Samsung Galaxy Tab 10.1v (which is running Android HoneyComb) I bought last week and I found I can get the podcasts on Android devices as well! This is done via an Android app called Google Listen. Once Google Listen is installed on your android device, simply subscribe to the RSS feed inside of

Continue reading

Setting SMS_INSTALL_DIR_PATH Environment variable on SCCM site servers for SCOM SCCM management pack

According to the “Configuration Manager 2007 SP2 Management Pack User’s Guide for Operations Manager 2007 R2 and Operations Manager 2007 SP1” (for MP version 6.0.6000.2), An environment variable named “SMS_INSTALL_DIR_PATH” needs to be created on all SCCM site servers. I had to do this on 80+ site servers, so I thought why not do this using a script and let SCCM to push it out to all site servers? Therefore, I wrote a VBScript Set-EnvirVar-For-SCOM.vbs (I didn’t use PowerShell this time because it is easier to push out VBScripts via SCCM). Source Code: This script retrieves the path of the

Continue reading

PowerShell Functions: Get IPV4 Network Start and End Address

I wrote 2 PowerShell functions today: Get-IPV4NetworkStartIP and Get-IPV4NetworkEndIP. Input: Network IP address in CIDR notation Format Output: The start or end IP (System.Net.IPAddress object). Get-IPV4NetworkStartIP: Get-IPV4NetworkEndIP: Usage: Get-IPV4NetworkStartIP “192.168.1.0/24” Get-IPV4NetworkEndIP “192.168.1.0/24” Examples:

Continue reading

Updated: SCCM Health Check PowerShell Script

I have updated the SCCM Health Check Script that I have originally posted here. Download Version 3.1 Here. Changes: 1. The script can now utilise Powershell Remoting to check inboxes sizes. It requires PS-Remoting to be enabled on all SCCM Site Servers. This dramatically reduced the execution time of the script in a multi-tier environment. In a production environment that I support, it reduced the execution time from 1.5 – 2 hours to around 35 minutes!  You can configure which method to use via XML file. To enable, set <PSRemoting><Value> to Enabled. Or Disabled if you want to use the

Continue reading

Problem with DNS name resolution when using System.Net.DNS class

I recently ran into a problem when writing a PowerShell script to perform DNS Name resolution using .NET class System.Net.DNS (http://msdn.microsoft.com/en-us/library/system.net.dns.aspx). I noticed when I’m using System.Net.DNS to perform reverse lookup (GetHostByAddress method), even though the PTR record is missing in DNS, it is still able to resolve the name. It looks like this method connects to the host to retrieve its host name. When the machine is powered off, GetHostByAddress method is unable to resolve the IP address to it’s name (Which is desired result because there is no PTR record in reverse lookup zone): I then powered on

Continue reading

PowerShell Script: SCCM Health Check

30/01/2012: This script has been updated to version 3.5. Details can be found HERE. The download link on this article has also been updated to version 3.5. 26/05/2011: Version 3.3 has been posted here. The download link to the script on this post is also updated to the new version 3.3. 21/04/2011: Please be advised that I have posted a newer version of the script here. The existing script download link on this page has also been updated to point to the newer version. For the chanages in newer version, please refer to my updated post. Over the last few

Continue reading
%d bloggers like this: