mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-17 11:23:45 +00:00
Implemented Jordan's suggested edits.
This commit is contained in:
@ -283,17 +283,22 @@ Once you've completed configuring your chosen Managed Installer, by specifying w
|
|||||||
Set-AppLockerPolicy -XmlPolicy $policyFile -Merge -ErrorAction SilentlyContinue
|
Set-AppLockerPolicy -XmlPolicy $policyFile -Merge -ErrorAction SilentlyContinue
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Verify policy deployment
|
2. Verify Deployment of the Rule set was successful
|
||||||
```powershell
|
```powershell
|
||||||
|
$policyFile=
|
||||||
|
@"
|
||||||
|
Raw_AppLocker_Policy_XML
|
||||||
|
"@
|
||||||
Get-AppLockerPolicy -Local
|
Get-AppLockerPolicy -Local
|
||||||
|
|
||||||
Version RuleCollections RuleCollectionTypes
|
Version RuleCollections RuleCollectionTypes
|
||||||
------- --------------- -------------------
|
------- --------------- -------------------
|
||||||
1 {0, 0, 0, 0...} {Appx, Dll, Exe, ManagedInstaller...}
|
1 {0, 0, 0, 0...} {Appx, Dll, Exe, ManagedInstaller...}
|
||||||
```
|
```
|
||||||
Notice the output shows the ManagedInstaller rule is there.
|
Verify the output shows the ManagedInstaller rule set.
|
||||||
|
|
||||||
3. Get the policy XML (optional) using PS:
|
3. Get the policy XML (optional) using PS:
|
||||||
```powershell
|
```powershell
|
||||||
Get-AppLockerPolicy -Effective -Xml -ErrorVariable ev -ErrorAction SilentlyContinue
|
Get-AppLockerPolicy -Effective -Xml -ErrorVariable ev -ErrorAction SilentlyContinue
|
||||||
```
|
```
|
||||||
|
This command will show the raw XML to verify the individual rules that were set.
|
Reference in New Issue
Block a user