Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Created September 17, 2014 19:43
Show Gist options
  • Save guitarrapc/1894c0b1980fa07838c1 to your computer and use it in GitHub Desktop.
Save guitarrapc/1894c0b1980fa07838c1 to your computer and use it in GitHub Desktop.
# Present
configuration ACLChange
{
Import-DscResource -ModuleName GraniResource
node Localhost
{
File hoge
{
Ensure = "Present"
DestinationPath = "C:\host.txt"
Type = "file"
Contents = "hoge"
}
cACL FullCONTROL
{
Ensure = "Present"
Path = "C:\host.txt"
Account = "BuiltIn\Users"
Rights = "FullControl"
}
}
}
ACLChange -OutputPath .
Start-DscConfiguration -Wait -Force -Verbose -Path ACLChange
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment