Add restart functionality

pull/7861/head
Paul Durivage 11 years ago committed by Matt Martz
parent ab8f7289b0
commit 10a526e020

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

Loading…
Cancel
Save