PowerShell: Move ConfigMgr Collections

Introduction If you work with Microsoft System Center Configuration Manager (SCCM / ConfigMgr) 2007 in any capacity, you probably are familiar with the concept of "collections" and how painful they can be to work with sometimes. The ConfigMgr console does not provide any method of moving a collection from one parent to another, and the … Read morePowerShell: Move ConfigMgr Collections

PowerShell: Report / Check the Size of ConfigMgr Task Sequences

Introduction

In Microsoft System Center Configuration Manager 2007 operating system deployment (OSD), there is a limitation of 4MB for task sequence XML data. This is discussed in a couple of locations:

The Technet document linked to above says the following:

Extremely large task sequences can exceed the 4-MB limit for the task sequence file size. If this limit is exceeded, an error is generated.

Solution: To check the task sequence file size, export the task sequence to a known location and check the size of the resulting .xml file.

Basically, the Technet troubleshooting article is suggesting that you would need to go into the ConfigMgr console, right-click a task sequence, export it to a XML file, and then pull up the file properties. That’s fine for one-off troubleshooting, but what if you had 1000 task sequences and needed to know how large all of them were? Read on to find out how!

Read morePowerShell: Report / Check the Size of ConfigMgr Task Sequences

PowerShell: Get a List of Installed Software from ConfigMgr

Let’s say you’ve got Microsoft’s System Center Configuration Manager (SCCM / ConfigMgr) in your IT environment (and if you don’t, why on earth not!). If you’re on the desktop management team, you might occasionally get requests from someone on a network or security team, inquiring as to the installed software on a particular client, or group of clients.

Rather than diving straight into the ConfigMgr reports, as most people do, sometimes it’s just faster to load a data set into PowerShell and massage the data from there. Why PowerShell? Well, it provides very easy, real-time filtering and sorting capabilities, and if you need to make a modification to a temporary “report,” you don’t have to worry about modifying the Report object in the ConfigMgr provider, which is typically done through the ConfigMgr console.

Read morePowerShell: Get a List of Installed Software from ConfigMgr

PowerShell: Disable ConfigMgr Task Sequence Countdown Notification

Introduction If you are using Microsoft System Center Configuration Manager (SCCM / ConfigMgr) to deploy task sequences to ConfigMgr client systems, you may notice that by default, a countdown notification is shown as a balloon notification in the client’s system tray. In some cases, this functionality may be undesirable, and you may therefore wish to … Read morePowerShell: Disable ConfigMgr Task Sequence Countdown Notification

PowerShell: Initiate Evaluation of ConfigMgr DCM Baselines

Introduction

Recently, I was working with Desired Configuration Management (DCM) in System Center Configuration Manager (SCCM / ConfigMgr) 2007 SP2 R3. During the development of configuration items (CIs) and baselines, it’s common to have to trigger baseline evaluations to ensure that the validation rules you’re writing are correct.

Read morePowerShell: Initiate Evaluation of ConfigMgr DCM Baselines

ConfigMgr: Report of VMware Guests Missing VMTools

I needed to get a report of server systems that are missing the VMware Tools installation. This is pretty easy to do with a subselect query in Microsoft’s System Center Configuration Manager (SCCM / ConfigMgr). Here is the query I put together for this purpose: select     [sys].[AD_Site_Name0]     , [sys].[Name0]     , [cs].[Manufacturer0] from … Read moreConfigMgr: Report of VMware Guests Missing VMTools

ConfigMgr: Hardware Inventory MIF Errors

Introduction

In this situation, I’m working with a System Center Configuration Manager 2007 Service Pack 2 R3 central + child primary site configuration. Both sites have local databases, and all SCCM components (eg. management point, provider, distribution point, etc.) are local. SCCM clients are a combination of Windows Server 2003, 2008, and 2008 R2.

Recently on the child primary site, I started getting a bunch of MIF processing errors in the INVENTORY_DATA_LOADER component on a primary site. I had recently made some very minor edits to sms_def.mof, by enabling a few additional properties for reporting – I didn’t add anything new or custom to my sms_def.mof or configuration.mof, so I was a bit surprised to be running into issues.

Read moreConfigMgr: Hardware Inventory MIF Errors

PowerShell: Removing Software Updates from Windows

Introduction

Recently, I had the need to remove software updates from Windows servers in order to test out patching functionality in System Center Configuration Manager (SCCM / ConfigMgr). Since we’re currently deploying full patched operating system (OS) images, we didn’t really have any machines to test deploying software updates with. We’re currently working with non-production servers, so removing software updates for a few minutes and reinstalling them isn’t a big deal. I figured the easiest thing to do would be to simply remove any and all updates that could be removed (some can’t be uninstalled), so naturally, I wrote a script to handle this.

Read morePowerShell: Removing Software Updates from Windows

ConfigMgr 2007: Client Installation Problem

Symptoms

I was getting the following messages in my ccmsetup.log files when trying to do a client push installation to about 50 servers. The servers were a combination of Windows Server 2003, 2008, and 2008 R2.

The HTTP 500 error message seen in the second line indicates an “internal server error” within IIS on the ConfigMgr management point. Based on that, I knew that there must have been some sort of misconfiguration on the IIS server.

Read moreConfigMgr 2007: Client Installation Problem

PowerShell: Creating the System Management Container

If you’ve ever worked with Systems Management Server (SMS) 2003 or System Center Configuration Manager (ConfigMgr / SCCM) 2007, you probably are familiar with the step of creating the “System Management” container underneath the “CN=System,DC=mydomain,DC=com” container in Active Directory. Normally you have to go into ADSIEdit.msc in order to do this, since you can’t create … Read morePowerShell: Creating the System Management Container