Join-IisVirtualPath

Combines a path and a child path for an IIS website, application, virtual directory into a single path.

Syntax

Join-IisVirtualPath [-Path] <String> [[-ChildPath] <String>] [<CommonParameters>]

Description

Removes extra slashes. Converts backward slashes to forward slashes. Relative portions are not removed. Sorry.

Beginning with Carbon 2.0.1, this function is available only if IIS is installed.

Parameters

Name Type Description Required? Pipeline Input Default Value
Path String

The parent path.

true false
ChildPath String false false

EXAMPLE 1

Join-IisVirtualPath 'SiteName' 'Virtual/Path'

Demonstrates how to join two IIS paths together. REturns SiteName/Virtual/Path.