Skip to content

Instantly share code, notes, and snippets.

@shirhatti
Created December 10, 2015 22:59
Show Gist options
  • Save shirhatti/eee69f380c08e60a4287 to your computer and use it in GitHub Desktop.
Save shirhatti/eee69f380c08e60a4287 to your computer and use it in GitHub Desktop.
Create breadcrumb directory for Servicing
$breadcrumbFolder = $env:ALLUSERSPROFILE + '\Microsoft DNX\BreadcrumbStore'
New-Item -Force -Path $breadcrumbFolder -ItemType "Directory"
$ACL = Get-Acl -Path $breadcrumbFolder
# Clear any permissions
$ACL.SetAccessRuleProtection($true, $false)
# Set new permissions
$ACL.SetSecurityDescriptorSddlForm("O:SYG:SYD:P(A;OICI;CCDCSWWPLORC;;;WD)(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)")
Set-Acl -Path $breadcrumbFolder -AclObject $ACL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment