This is the built-in help made by Microsoft for the command 'ConvertTo-WebApplication', in PowerShell version 3 - as retrieved from
Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Converts an IIS virtual directory to an IIS Web application.
ConvertTo-WebApplication [[-PSPath] <String[]>] [-ApplicationPool <String>] [-Force [<SwitchParameter>]] [-Confirm [<SwitchParameter>]]
[-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Converts an IIS virtual directory to an IIS Web application.
<
Get-WebApplication
New-WebApplication
Remove-WebApplication
<
-------------- EXAMPLE 1: Convert a Virtual Directory to a Web Application --------------
IIS:\>md $env:systemdrive\inetpub\Contoso New-WebVirtualDirectory -Site "Default Web Site" -Name ContosoVDir -physicalPath
$env:systemdrive\inetpub\Contoso ConvertTo-WebApplication "IIS:\Sites\Default Web Site\ContosoVDir"
This example creates a physical directory named "Contoso." It then creates a virtual directory in IIS that uses that physical directory. It
then converts the virtual directory to a Web application.