PowerShell Logo Small

ConvertTo-WebApplication



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.

SYNOPSIS

Converts an IIS virtual directory to an IIS Web application.

SYNTAX


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



Search powershellhelp.space

DESCRIPTION


Converts an IIS virtual directory to an IIS Web application.



<

RELATED LINKS

Get-WebApplication
New-WebApplication
Remove-WebApplication

REMARKS

<

Examples


-------------- 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.