Commit 10a526e0 by Paul Durivage Committed by Matt Martz

Add restart functionality

parent ab8f7289
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment