mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-12 13:27:23 +00:00
Merge pull request #10904 from Harvester57/Harvester57-patch-1
[WDAC] Ensure that destination folders are present (script deployment method)
This commit is contained in:
commit
05523a9f67
@ -90,8 +90,9 @@ If you are using [signed WDAC policies](windows/security/threat-protection/windo
|
||||
$MountPoint = 'C:\EFIMount'
|
||||
$EFIDestinationFolder = "$MountPoint\EFI\Microsoft\Boot\CiPolicies\Active"
|
||||
$EFIPartition = (Get-Partition | Where-Object IsSystem).AccessPaths[0]
|
||||
if (-Not (Test-Path $MountPoint)) { New-Item -Path $MountPoint -Type Directory -Force }
|
||||
mountvol $MountPoint $EFIPartition
|
||||
mkdir $EFIDestinationFolder
|
||||
if (-Not (Test-Path $EFIDestinationFolder)) { New-Item -Path $EFIDestinationFolder -Type Directory -Force }
|
||||
```
|
||||
|
||||
2. Copy the signed policy to the created folder:
|
||||
|
Loading…
x
Reference in New Issue
Block a user