Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <#
- .Synopsis
- Install IIS and Windows required features, for 1 or more computers.
- Requires PS3
- Requires Windows 2008 R2 or higher
- .Description
- To see the current list of installed features, use [Get-WindowsFeature]
- The system must be rebooted after installation
- .Example
- Install-IIS
- #>
- function Install-IIS
- {
- Param (
- [Parameter(Mandatory=$true, Position=0)]
- [string[]]
- $ComputerSet
- )
- Begin
- {
- Import-Module ServerManager
- }
- Process
- {
- Add-WindowsFeature Application-Server, NPAS, Web-Server, Net-Framework, RDS-RD-Server -IncludeAllSubFeature -Restart -Concurrent
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement