$group = [ADSI]"WinNT://./IIS_IUSRS,group" $group.Add("WinNT://%DOMAIN%/%USERNAME%,user") $group = [ADSI]"WinNT://./Performance Monitor Users,group" $group.Add("WinNT://%DOMAIN%/%USERNAME%,user") Import-Module ServerManager Add-WindowsFeature Web-App-Dev Add-WindowsFeature Web-Net-Ext Add-WindowsFeature Web-Net-Ext45 Add-WindowsFeature Web-Asp Add-WindowsFeature Web-Asp-Net Add-WindowsFeature Web-Asp-Net45 Add-WindowsFeature Web-Http-Redirect Add-WindowsFeature Web-Windows-Auth Add-WindowsFeature Web-Mgmt-Tools Add-WindowsFeature Web-Static-Content Add-WindowsFeature Web-Stat-Compression Add-WindowsFeature Web-Dyn-Compression iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) cinst 7zip cinst aspnetmvc4.install