There are multiple blogs posts available on how to setup a detection rule for sccm application. However, I find it difficult to set registry setting type correctly i.e. what values should go in fields like ‘key’, ‘value’, ‘data type’ etc.
So here is my blog post answering such questions. I am sharing one example of validating a SCCM application using detection rule using Registry setting type. I wil not share details on how to create sccm application in this blog (there are various good blog posts available on internet that can be referred)
Refer below screenshots of Registry editor and SCCM Application Detection Rule using Registry setting type.
Setting Type: It is one of the standard values (File System, Registry and Windows Installer). In our example, we have chosen ‘Registry’ setting type.
Hive: Hive is the logical group of keys and sub keys. It is one of the standard values (HKEY_CLASSES_ROOT, HKEY_CURRENT_CONFIG, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE and HKEY_USERS). To read more about hives, refer this page.
Key: key is the Registry Key path from hive. In our example, key is ‘SOFTWARE\Wow6432Node\Network Associates\ePolicy Orchestrator\Application Plugins\EPOAGENT3000’
Value: Value is the Value name which can be of type String, Binary, DWORD, QWORD, Multi-String or Expandable String. In our example, it is ‘Version’ of type REG_SZ (String).
Data Type: Data type is the datatype of Value Name. It has to be one of the standard values (String, Integer and Version). In our example, ‘Version’ value name is of type string (REG_SZ), but we are using ‘Version’ data type. SCCM is intelligent enough to do the type casting. Keeping datatype as ‘Integer’ helps us to set up the detection rule efficiently.
Registry Setting: There are two options available
- Option 1: If above specified registry setting exists – in our example this means that the value name ‘Version’ should exists and this detection rule does not care about what is the Value data. This is helpful if you are installing a new application.
- Option 2: If above specified registry setting satisfy a clause – in our example, this means that Value data of value name ‘Version’ should satisfy the mentioned clause. This is helpful when you are upgrading an already installed version. In our example, if a version 18.104.22.1685 or greater is already present, then application will be considered as deployed.
Hope above details will help you.
Till then, happy coding!!!