Created
December 10, 2015 22:59
-
-
Save shirhatti/eee69f380c08e60a4287 to your computer and use it in GitHub Desktop.
Create breadcrumb directory for Servicing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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