Created
September 17, 2014 19:43
-
-
Save guitarrapc/1894c0b1980fa07838c1 to your computer and use it in GitHub Desktop.
ACL Sample : https://github.com/guitarrapc/DSCResources/blob/master/Custom/Test/Grani_cACL/Present/cACLResource.ps1
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
# 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