SCCM 2012 – Add-CMDeploymentTypeGlobalCondition

SCCM 2012 – Add-CMDeploymentTypeGlobalCondition

Hi All,

when i was preparing the presentation for the thedesktopteam workshop day last year (http://thedesktopteam.com/blog/raphael/workshop-day-5th-april-2014-london/), i created few scripts to add requirements to a
existing application/deployment type. by the time, i tought that this was too advanced for what i wanted to deliver on that workshop and because
work related stuff, i never had a change to publish it.

Few days back, i was speaking with Rick and he told me that it was impossible to achieve some of the requirements via script/powershell and i said it was possible and i had a script for it.
what he was trying to do is to add a OS requiement for an application.

to clarify my answer, the ConfigMgr console is also a “script” language. of course, it probably uses c# or c++, but it is a compiled script, so if they can, any other scripting language also can do, we probably only need to learn how to do.
sccm console is based on WMI and if they can achieve that, powershell/vbscript will also be able to achieve the same.

anyway, you got my i said it was possible, even if i had no script already created.

to now how to use the script, i suggest using the powershell command get-help .\Add-CMDeploymentTypeGlobalCondition.ps1 -Full

You can download the script from the technet gallery at https://gallery.technet.microsoft.com/Add-a-Requirement-to-an-ce60681f

have a good scripting time

About

Raphael is a 9 times Microsoft MVP with over 20 years of experience in IT, in which 13 years have been dedicated to System Center and Automation. His extended experience has been developed through several IT roles, from first-line support to principal consultant, towards a wide range of clients and sectors. One of the four MVPs in Enterprise Client Management in the UK, Raphael holds more than 30 Microsoft certifications and is an MCT (Microsoft Certified Trainer). Since 2008, Raphael has been providing Microsoft trainings from basic to advanced levels in several categories. Throughout his career, Raphael has joined as speaker in well-known events such as TechEd and Gartner Security Risk Management. He also organised community events and lectured around the world, sharing best practices and knowledge within the industry. Bilingual in English and Portuguese, Raphael has authored diverse articles published in Microsoft's TechEd, served as the editor-in-chief of a magazine focused on System Center in Brazil and wrote two books: "Understanding System Center 2012 SP1 Configuration Manager: The walkthrough book" and "System Center 2012 R2 Configuration Manager: Automation from Zero to Hero".

Tagged with: , , , ,