Changing the Deployment Package for an existing Automatic Deployment Rule in ConfigMgr 2012

A few months ago I did a post about Changing the Deployment Package linked to an Automatic Deployment Rule in ConfigMgr 2012. That post was about using PowerShell for changing the Deployment Package of an existing Automatic Deployment Rule (ADR). As I see that the script is being downloaded often, and I get some good questions about it, I thought it would be a good time for a small follow-up. Even though the script will still work in ConfigMgr 2012 R2, it will not be needed anymore! Microsoft addressed the issue in R2 by adding a new tab, named Deployment Package, to the Properties of an ADR (see screenshot).

Changing the Deployment Package linked to an Automatic Deployment Rule in ConfigMgr 2012

This week I want to devote a post to changing the Deployment Package, which is linked to an Automatic Deployment Rule. I came on this subject as I got and read some questions about it. Actually it was not just that, also the fact that the answer was usually, that it’s not possible, at leas not via the console. As I couldn’t imagine that it’s not possible I went on a small research to see where it’s stored and how we can change it. XML and WMI Let’s start with where it’s stored. In WMI it’s stored in the class SMS_AutoDeployment and then the property ContentTemplate. Here it’s stored in XML format, like this: <?xml version=”1.0″ encoding=”utf-16″?><ContentActionXML xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema”><PackageID>PTP00027</PackageID><ContentLocales><Locale>Locale:9</Locale><Locale>Locale:0</Locale></ContentLocales><ContentSources><Source Name=”Internet” Order=”1″/><Source Name=”WSUS” Order=”2″/><Source Name=”UNC” Order=”3″ …

Read more