Fixed PS bug in the deployment guide

This commit is contained in:
Jordan Geurten 2023-01-06 13:46:11 -05:00
parent 9184f5b883
commit 50f52c1e05

View File

@ -31,7 +31,7 @@ Before you deploy your WDAC policies, you must first convert the XML to its bina
```powershell ```powershell
## Update the path to your WDAC policy XML ## Update the path to your WDAC policy XML
$WDACPolicyXMLFile = $env:USERPROFILE"\Desktop\MyWDACPolicy.xml" $WDACPolicyXMLFile = $env:USERPROFILE + "\Desktop\MyWDACPolicy.xml"
[xml]$WDACPolicy = Get-Content -Path $WDACPolicyXMLFile [xml]$WDACPolicy = Get-Content -Path $WDACPolicyXMLFile
if (($WDACPolicy.SiPolicy.PolicyID) -ne $null) ## Multiple policy format (For Windows builds 1903+ only, including Server 2022) if (($WDACPolicy.SiPolicy.PolicyID) -ne $null) ## Multiple policy format (For Windows builds 1903+ only, including Server 2022)
{ {