Skip to content

Commit

Permalink
fix(CLIENTCBS): don't takeown & set ACL
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Sep 18, 2023
1 parent d2d7c56 commit f2e07fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/playbook/Executables/CLIENTCBS.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ $Cbs = "$env:SystemRoot\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy"

## Remove 'Get started' and 'Windows Backup' from Start Menu
$Manifest = Join-Path $Cbs 'appxmanifest.xml'
takeown /a /f $Manifest
icacls $Manifest /grant Administrators:F
$AtlasManifest = Join-Path $Cbs "appxmanifest.xml.atlas"
if (!(Test-Path $AtlasManifest)) {
Copy-Item -Path $Manifest -Destination $AtlasManifest -Force
Get-Acl -Path $Manifest | Set-Acl -Path $AtlasManifest
Remove-Item $Manifest -Force
}
[xml]$xml = Get-Content -Path "$Cbs\appxmanifest.xml.atlas" -Raw
Expand Down

0 comments on commit f2e07fa

Please sign in to comment.