Created
December 6, 2014 22:20
-
-
Save guitarrapc/7a7fb502e3cee29a39a9 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 Service | |
{ | |
$service = "WinRM", "Winmgmt" | |
$state = "Running" | |
$startupType = "Automatic" | |
foreach ($x in $service) | |
{ | |
Service $x | |
{ | |
Name = $x | |
State = $state | |
StartupType = $startupType | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment