Skip to content

Commit 0aee780

Browse files
update appcontrol docs
1 parent bc05d06 commit 0aee780

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

WindowsServerDocs/security/osconfig/osconfig-how-to-configure-app-control-for-business.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,13 @@ To verify that the supplemental policies were applied, monitor event IDs **3076*
179179
To view the policies that are currently in effect in your environment, run the following command:
180180

181181
```powershell
182-
(Get-OSConfigDesiredConfiguration -Scenario AppControl).Value.PolicyInfo | Where-Object { $_.IsEffective -eq $true }
182+
(Get-OSConfigDesiredConfiguration -Scenario AppControl).Value.PSObject.Properties | ForEach-Object { $_.Value.PolicyInfo } | Where-Object { $_.IsEffective -eq $true }
183183
```
184184

185185
To view policies that are currently inactive in your environment, run the following command:
186186

187187
```powershell
188-
(Get-OSConfigDesiredConfiguration -Scenario AppControl).Value.PolicyInfo | Where-Object { $_.IsEffective -eq $false }
188+
(Get-OSConfigDesiredConfiguration -Scenario AppControl).Value.PSObject.Properties | ForEach-Object { $_.Value.PolicyInfo } | Where-Object { $_.IsEffective -eq $false }
189189
```
190190

191191
Output for these queries varies based on your policy configuration needs.

0 commit comments

Comments
 (0)