Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Created November 29, 2016 06:51
Show Gist options
  • Save nivleshc/aed3a1fee0f4eb2ddf4f9af167c88b8a to your computer and use it in GitHub Desktop.
Save nivleshc/aed3a1fee0f4eb2ddf4f9af167c88b8a to your computer and use it in GitHub Desktop.
Installs the Web Application Proxy Role using DSC
Configuration InstallWAP
{
param
(
[string[]]$NodeName="localhost"
)
Node $NodeName
{
LocalConfigurationManager
{
ActionAfterReboot = 'ContinueConfiguration'
ConfigurationMode = 'ApplyOnly'
RebootNodeIfNeeded = $true
}
WindowsFeature InstallWAP #install WAP Role
{
Ensure = "Present"
Name = "Web-Application-Proxy"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment