WebPI Power Shell is a wrapper for WebPICMD.exe written in PowerShell and shipped as Powershell Module
WebPICMD.exe(WebPI Command line) is a command line tool for managing Web Platform Installer
The Microsoft Web Platform Installer (Web PI) is a free tool that makes getting the latest components of the Microsoft Web Platform, including Internet Information Services (IIS), SQL Server Express, .NET Framework and Visual Web Developer easy
Module is available on Powershell Gallery
PS> Save-Module -Name WebPI.PS -Path <path>
PS> Install-Module -Name WebPI.PS
Import-Module WebPI.PS
Invoke-WebPI /List /ListOption:Installed
Invoke-WebPI /Install /Products:UrlRewrite2
Invoke-WebPI /Install /Products:UrlRewrite2, WDeploy36, DACFX, SQLDOM
Limitations
Due to the fact how PS split parameter if there is a comma in it, use double quote so whole string will be treated as a single param.
- BAD
- Invoke-WebPI /Install /Products:UrlRewrite2,WDeploy36
+ GOOD
+ Invoke-WebPI /Install "/Products:UrlRewrite2,WDeploy36"