Add restart functionality

reviewable/pr18780/r1
Paul Durivage 11 years ago committed by Matt Martz
parent a8dff668dd
commit ebbf356b30

@ -50,7 +50,12 @@ If ($params.restart) {
If ($state -eq "present") { If ($state -eq "present") {
try { try {
$result = Add-WindowsFeature -Name $name if ($restart) {
$featureresult = Add-WindowsFeature -Name $name -Restart
}
else {
$featureresult = Add-WindowsFeature -Name $name
}
} }
catch { catch {
Fail-Json $result $_.Exception.Message Fail-Json $result $_.Exception.Message

Loading…
Cancel
Save