Posts

Showing posts with the label Application Deployment

Custom Global Condition for Windows Features in MECM

Image
It’s time for another back to the basics on Application building in MECM. You’re getting ready to create an Application in MECM. Said Application requires that a specific Windows Feature is enabled. I know I could use PowerShell App Deployment Toolkit or even a small custom PowerShell script to handle enabling the feature and running the install, but in this case I don’t want the Application to install if a particular Windows Feature is not enabled. To do this, I’m going to create a Custom Global Condition to detect if the Windows Feature in question is enabled. Open your MECM console and go to \Software Library\Overview\Application Management\Global Conditions. Click on Create Global Condition on the ribbon. Give your Global Condition a name that makes sense for your environment. Put in a quick description of what it checks for. Device type is Windows and Condition type is Setting . Setting type is Script and Data type is String . Click the Add Script button . For the Script...

SCCM Global Condition for PC System Type (aka Application "Requirement")

Image
Have you ever needed to deploy an Application just to a laptop or just to a desktop? The built-in Global Conditions in SCCM leave a lot of room for expansion and improvement. For this exercise, I'm going to show you how to make a Global Condition with a simple WMI query through WQL in order to deploy an Application to laptops (or other laptop like devices such as Surfaces, 2-in-1s, etc) only. Step one will be to create a Global Condition in SCCM for the Win32_ComputerSystem class with the PCSystemType property. Step two will be to create a requirement on the deployment type for our Application with this custom requirement looking for a value of 2 (mobile).  Possible Enumeration Values for ROOT\cimv2:Win32_ComputerSystem\PCSystemType:  0 - Unspecified 1 - Desktop 2 - Mobile 3 - Workstation 4 - Enterprise Server 5 - SOHO Server 6 - Appliance PC 7 - Performance Server 8 - Maximum =================================== Step 1:  Create a new Glo...