Skip to content

Instantly share code, notes, and snippets.

@robv8r
Last active August 20, 2017 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robv8r/85b248690540575b3ae21a06b9e04332 to your computer and use it in GitHub Desktop.
Save robv8r/85b248690540575b3ae21a06b9e04332 to your computer and use it in GitHub Desktop.
[CmdletBinding()]
param ()
function Install-DscPullServerPrerequisites {
[CmdletBinding()]
param ()
$result = Install-WindowsFeature Web-Server,DSC-Service -IncludeManagementTools:$true -Restart:$false
if ($result.RestartNeeded -ne "No") {
Write-Output "A reboot is needed to complete this operation. Please reboot before continuing."
}
}
Install-DscPullServerPrerequisites
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment