mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-18 16:27:22 +00:00
Fixed PS bug in the deployment guide
This commit is contained in:
parent
9184f5b883
commit
50f52c1e05
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user