File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
sccm-ps/ConfigurationManager Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
description : Run a WMI query.
3
3
external help file : AdminUI.PS.dll-Help.xml
4
4
Module Name : ConfigurationManager
5
- ms.date : 12/28/2020
5
+ ms.date : 08/02/2022
6
6
schema : 2.0.0
7
7
title : Invoke-CMWmiQuery
8
8
---
@@ -108,7 +108,7 @@ The first command clears the search parameters from any existing search object.
108
108
109
109
The second command adds search parameters to the ** $Search** object. In this case, the query searches for applications.
110
110
111
- The last command runs the query stored in ** $Search** . It specifies ** SMS_Site ** as the class that contains the site ** CI_ID** property.
111
+ The last command runs the query stored in ** $Search** . It specifies ** SMS_Application ** as the class that contains the site ** CI_ID** property.
112
112
113
113
``` powershell
114
114
$Search.Clear()
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ This example first uses the **Get-CMGlobalCondition** cmdlet to get a custom glo
38
38
39
39
``` powershell
40
40
$myGC = Get-CMGlobalCondition -Name "Custom GC1"
41
- $myRule = New-CMRequirementRuleCommonValue -GlobalCondition $myGC -Existential $true
41
+ $myRule = New-CMRequirementRuleExistential -GlobalCondition $myGC -Existential $true
42
42
43
43
Set-CMScriptDeploymentType -ApplicationName "Central app" -DeploymentTypeName "Install" -AddRequirement $myRule
44
44
```
You can’t perform that action at this time.
0 commit comments