mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-12 21:37:22 +00:00
Indented content in a list item
This commit is contained in:
parent
8a02668349
commit
ec904ce7a9
@ -145,19 +145,20 @@ Event XML:
|
|||||||
To add this CLSID to the existing policy, follow these steps:
|
To add this CLSID to the existing policy, follow these steps:
|
||||||
|
|
||||||
1. Open PowerShell ISE with Administrative privileges.
|
1. Open PowerShell ISE with Administrative privileges.
|
||||||
|
|
||||||
2. Copy and edit this command, then run it from the admin PowerShell ISE. Consider the policy name to be `WDAC_policy.xml`.
|
2. Copy and edit this command, then run it from the admin PowerShell ISE. Consider the policy name to be `WDAC_policy.xml`.
|
||||||
|
|
||||||
```PowerShell
|
```PowerShell
|
||||||
PS C:\WINDOWS\system32> Set-CIPolicySetting -FilePath <path to policy xml>\WDAC_policy.xml -Key "{f8d253d9-89a4-4daa-87b6-1168369f0b21}" -Provider WSH -Value true -ValueName EnterpriseDefinedClsId -ValueType Boolean
|
PS C:\WINDOWS\system32> Set-CIPolicySetting -FilePath <path to policy xml>\WDAC_policy.xml -Key "{f8d253d9-89a4-4daa-87b6-1168369f0b21}" -Provider WSH -Value true -ValueName EnterpriseDefinedClsId -ValueType Boolean
|
||||||
```
|
```
|
||||||
|
|
||||||
Once the command has been run, you will find that the following section is added to the policy XML.
|
Once the command has been run, you will find that the following section is added to the policy XML.
|
||||||
|
|
||||||
```XML
|
```XML
|
||||||
<Settings>
|
<Settings>
|
||||||
<Setting Provider="WSH" Key="{f8d253d9-89a4-4daa-87b6-1168369f0b21}" ValueName="EnterpriseDefinedClsId">
|
<Setting Provider="WSH" Key="{f8d253d9-89a4-4daa-87b6-1168369f0b21}" ValueName="EnterpriseDefinedClsId">
|
||||||
<Value>
|
<Value>
|
||||||
<Boolean>true</Boolean>
|
<Boolean>true</Boolean>
|
||||||
</Value>
|
</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user