mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-16 02:43:43 +00:00
Fixed convertfrom steps to use correct variables
This commit is contained in:
@ -15,7 +15,7 @@ author: jsuther1974
|
|||||||
ms.reviewer: jogeurte
|
ms.reviewer: jogeurte
|
||||||
ms.author: vinpa
|
ms.author: vinpa
|
||||||
manager: aaroncz
|
manager: aaroncz
|
||||||
ms.date: 11/04/2022
|
ms.date: 11/07/2022
|
||||||
ms.technology: itpro-security
|
ms.technology: itpro-security
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -119,10 +119,9 @@ Alice follows these steps to complete this task:
|
|||||||
7. Use [ConvertFrom-CIPolicy](/powershell/module/configci/convertfrom-cipolicy) to convert the Windows Defender Application Control policy to a binary format:
|
7. Use [ConvertFrom-CIPolicy](/powershell/module/configci/convertfrom-cipolicy) to convert the Windows Defender Application Control policy to a binary format:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
[xml]$LamnaPolicyXML = Get-Content $LamnaPolicy
|
[xml]$PolicyXML = Get-Content $LamnaPolicy
|
||||||
$PolicyId = $LamnaPolicyXML.SiPolicy.PolicyId
|
$LamnaPolicyBin = Join-Path $PolicyPath "$($PolicyXML.SiPolicy.PolicyID).cip"
|
||||||
$LamnaPolicyBin = $PolicyPath+$PolicyId+".cip"
|
ConvertFrom-CIPolicy $LamnaPolicy $LamnaPolicyBin
|
||||||
ConvertFrom-CIPolicy $LamnaPolicy $WDACPolicyBin
|
|
||||||
```
|
```
|
||||||
|
|
||||||
8. Upload your base policy XML and the associated binary to a source control solution such as [GitHub](https://github.com/) or a document management solution such as [Office 365 SharePoint](https://products.office.com/sharepoint/collaboration).
|
8. Upload your base policy XML and the associated binary to a source control solution such as [GitHub](https://github.com/) or a document management solution such as [Office 365 SharePoint](https://products.office.com/sharepoint/collaboration).
|
||||||
|
@ -15,7 +15,7 @@ author: jsuther1974
|
|||||||
ms.reviewer: jogeurte
|
ms.reviewer: jogeurte
|
||||||
ms.author: vinpa
|
ms.author: vinpa
|
||||||
manager: aaroncz
|
manager: aaroncz
|
||||||
ms.date: 11/04/2022
|
ms.date: 11/07/2022
|
||||||
ms.technology: itpro-security
|
ms.technology: itpro-security
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -149,9 +149,9 @@ Alice follows these steps to complete this task:
|
|||||||
1. Use [ConvertFrom-CIPolicy](/powershell/module/configci/convertfrom-cipolicy) to convert the Windows Defender Application Control policy to a binary format:
|
1. Use [ConvertFrom-CIPolicy](/powershell/module/configci/convertfrom-cipolicy) to convert the Windows Defender Application Control policy to a binary format:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
[xml]$policyXML = Get-Content $LamnaPolicy
|
[xml]$PolicyXML = Get-Content $LamnaPolicy
|
||||||
$WDACPolicyBin = Join-Path $PolicyPath "$($PolicyName)_$($policyXML.SiPolicy.PolicyID).cip"
|
$LamnaPolicyBin = Join-Path $PolicyPath "$($PolicyXML.SiPolicy.PolicyID).cip"
|
||||||
ConvertFrom-CIPolicy $LamnaPolicy $WDACPolicyBin
|
ConvertFrom-CIPolicy $LamnaPolicy $LamnaPolicyBin
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Upload your base policy XML and the associated binary to a source control solution, such as [GitHub](https://github.com/) or a document management solution such as [Office 365 SharePoint](https://products.office.com/sharepoint/collaboration).
|
1. Upload your base policy XML and the associated binary to a source control solution, such as [GitHub](https://github.com/) or a document management solution such as [Office 365 SharePoint](https://products.office.com/sharepoint/collaboration).
|
||||||
|
Reference in New Issue
Block a user