mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-19 20:33:42 +00:00
Fixed workload minor edit for pre-1903 guidance
This commit is contained in:
@ -52,13 +52,11 @@ To create a WDAC policy, copy each of the following commands into an elevated Wi
|
|||||||
|
|
||||||
1. Initialize variables that you will use.
|
1. Initialize variables that you will use.
|
||||||
|
|
||||||
> [!NOTE]
|
|
||||||
> In the sample commands below, replace the string "{InsertPolicyID}" with the actual PolicyID GUID (including braces **{ }**) found in your policy XML file.
|
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
|
$PolicyPath=$env:userprofile+"\Desktop\"
|
||||||
$PolicyName="FixedWorkloadPolicy_Audit"
|
$PolicyName="FixedWorkloadPolicy_Audit"
|
||||||
$WDACPolicy=$env:userprofile+"\Desktop\"+$PolicyName+".xml"
|
$WDACPolicy=$PolicyPath+$PolicyName+".xml"
|
||||||
$WDACPolicyBin=$env:userprofile+"\Desktop\"+$PolicyName+"_{InsertPolicyID}.bin"
|
$WDACPolicyBin=$PolicyPath+$PolicyName+".bin"
|
||||||
|
|
||||||
2. Use [New-CIPolicy](https://docs.microsoft.com/powershell/module/configci/new-cipolicy) to create a new WDAC policy by scanning the system for installed applications:
|
2. Use [New-CIPolicy](https://docs.microsoft.com/powershell/module/configci/new-cipolicy) to create a new WDAC policy by scanning the system for installed applications:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user