Skip to content

PowerShell module for working with the WebPICMD.exe

Notifications You must be signed in to change notification settings

PowerShellLibrary/WebPI.PS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WebPI Power Shell

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

Installation

Module is available on Powershell Gallery

Inspect

PS> Save-Module -Name WebPI.PS -Path <path>

Install

PS> Install-Module -Name WebPI.PS

Usage

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"