PowerShell Logo Small

New-WebVirtualDirectory



This is the built-in help made by Microsoft for the command 'New-WebVirtualDirectory', 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

Creates a new virtual directory in IIS.

SYNTAX


New-WebVirtualDirectory [-Name] <String> [-Application <String>] [-Force] [-PhysicalPath <String>] [-Site <String>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


Creates a new virtual directory in IIS.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/p/?linkid=287880

REMARKS

<

Examples


-------------- EXAMPLE 1: Creating a Virtual Directory --------------

IIS:\>New-WebVirtualDirectory -Site "Default Web Site" -Name ContosoVDir -PhysicalPath c:\inetpub\contoso



The example creates a new virtual directory named "ContosoVDir" on the Default Web Site.