mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-19 12:23:37 +00:00
Update citool-commands.md
This commit is contained in:
@ -64,19 +64,19 @@ CiTool makes Windows Defender Application Control (WDAC) policy management easie
|
|||||||
|
|
||||||
4. List the actively enforced WDAC policies on the system
|
4. List the actively enforced WDAC policies on the system
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
$wdacPolicies = (CiTool -lp -json | ConvertFrom-Json).Policies
|
$wdacPolicies = (CiTool -lp -json | ConvertFrom-Json).Policies
|
||||||
|
|
||||||
# Check each policy's IsEnforced state and return only the enforced policies
|
# Check each policy's IsEnforced state and return only the enforced policies
|
||||||
foreach($wdacPolicy in $wdacPolicies ){
|
foreach($wdacPolicy in $wdacPolicies ){
|
||||||
|
|
||||||
if($wdacPolicy.IsEnforced)
|
if($wdacPolicy.IsEnforced)
|
||||||
{
|
{
|
||||||
Write-Host $wdacPolicy.FriendlyName
|
Write-Host $wdacPolicy.FriendlyName
|
||||||
Write-Host $wdacPolicy.PolicyID "`n"
|
Write-Host $wdacPolicy.PolicyID "`n"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
```
|
||||||
```
|
|
||||||
|
|
||||||
5. Display the help menu
|
5. Display the help menu
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user