Last active
August 29, 2015 14:10
-
-
Save guitarrapc/128716059fee41846e8f to your computer and use it in GitHub Desktop.
PowerShell DSC Advent Calendar 2014 : Day 6 Configuration の記述 http://tech.guitarrapc.com/entry/2014/12/06/230000
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
Configuration Remote | |
{ | |
param | |
( | |
[Parameter(Mandatory = 1, Position = 0)] | |
[pscredential]$Credential | |
) | |
User Remote | |
{ | |
UserName = $Credential.UserName | |
Ensure = "Present" | |
Password = $Credential | |
Disabled = $false | |
PasswordNeverExpires = $true | |
} | |
Group Remote | |
{ | |
GroupName = "RemoteUser" | |
Ensure = "Present" | |
MembersToInclude = $Credential.UserName, "Administrators" | |
DependsOn = "[User]Remote" | |
} | |
} |
Author
guitarrapc
commented
Dec 6, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment