PowerShell Logo Small

ConvertTo-WebApplication



This is the built-in help made by Microsoft for the command 'ConvertTo-WebApplication', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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.

SYNOPSIS

Converts an IIS virtual directory to an IIS Web application.

SYNTAX


ConvertTo-WebApplication [[-PSPath] <String[]>] [-ApplicationPool <String>] [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


Converts an IIS virtual directory to an IIS Web application.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=287844
Get-WebApplication
New-WebApplication
Remove-WebApplication

REMARKS

<

Examples


-------------- EXAMPLE 1: Convert a Virtual Directory to a Web Application --------------

IIS:\> md $env:systemdrive\inetpub\Contoso
IIS:\> New-WebVirtualDirectory -Site "Default Web Site" -Name ContosoVDir -physicalPath $env:systemdrive\inetpub\Contoso
IIS:\> 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.