PartialConfigurations/OSLayer.ps1
Configuration OSLayer { param( [string] $ComputerName ) Import-DscResource -ModuleName PSDesiredStateConfiguration, xwebadministration node $ComputerName { # Install the IIS role WindowsFeature IIS { Ensure = "Present" Name = "Web-Server" } # Install the ASP .NET 4.5 role WindowsFeature AspNet45 { Ensure = "Present" Name = "Web-Asp-Net45" } xWebsite DefaultSite { Ensure = "Present" Name = "Default Web Site" State = "Stopped" PhysicalPath = "C:\inetpub\wwwroot" } } } |