Splits a URI into component parts.
Split-Uri.ps1 [-Uri] <Uri> [-AbsolutePath] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-Authority] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-Credential] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-Extension] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-Filename <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-HostNameType] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-IsAbsoluteUri] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-IsDefaultPort] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-IsFile] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-IsLoopback] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-IsUnc] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-Leaf] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-LeafBase] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-ParentPath] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-ParentUri] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-Hostname] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-IdnHost] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-LocalPath] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-PathAndQuery] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-Port] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-Query] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-QueryAsDictionary] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-Scheme] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 [-Uri] <Uri> [-Segment <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri.ps1 https://webcoder.info/wps-to-psc.html -Leaf
wps-to-psc.html
Split-Uri.ps1 https://webcoder.info/wps-to-psc.html -IsAbsoluteUri
True
Split-Uri.ps1 https://webcoder.info/wps-to-psc.html -Authority
webcoder.info
Split-Uri.ps1 'http://example.net/q?one=something&one=another%20thing&two=second' -QueryAsDictionary
Name Value —- —– one {something, another thing} two second
Specifies the URI to split.
Type: Uri
Parameter Sets: (All)
Aliases: Url, Href, Src
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Indicates the absolute path of the URI should be returned.
Type: SwitchParameter
Parameter Sets: AbsolutePath
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the host/IP and port of the URI (as used to define security contexts) should be returned.
Type: SwitchParameter
Parameter Sets: Authority
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the credential of the URI should be returned, if a username and/or password was provided.
Type: SwitchParameter
Parameter Sets: Credentials
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the filename extension of the URI should be returned, if one is available.
Type: SwitchParameter
Parameter Sets: Extension
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the filename of the new URI should be returned, or the default value if one is not available. Supports format specifiers, {0} for the current date and time and {1} for a GUID.
Type: String
Parameter Sets: Filename
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates the type of the hostname of the URI should be returned: Basic, Dns, IPv4, IPv6, Unknown.
Type: SwitchParameter
Parameter Sets: HostNameType
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates $true should be returned if the URI is absolute, $false otherwise.
Type: SwitchParameter
Parameter Sets: IsAbsoluteUri
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates $true should be returned if the URI specifies a default port, $false otherwise.
Type: SwitchParameter
Parameter Sets: IsDefaultPort
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates $true should be returned if the URI is a file: URI, $false otherwise.
Type: SwitchParameter
Parameter Sets: IsFile
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates $true should be returned if the URI references the localhost, $false otherwise.
Type: SwitchParameter
Parameter Sets: IsLoopback
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates $true should be returned if the URI is a UNC path, $false otherwise.
Type: SwitchParameter
Parameter Sets: IsUnc
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the final segment of the URI should be returned.
Type: SwitchParameter
Parameter Sets: Leaf
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the final segment of the URI should be returned, without any filename extension.
Type: SwitchParameter
Parameter Sets: LeafBase
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the path of the URI should be returned, without the final segment.
Type: SwitchParameter
Parameter Sets: ParentPath
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the URI should be returned, without the final segment.
Type: SwitchParameter
Parameter Sets: ParentUri
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the hostname of the URI should be returned.
Type: SwitchParameter
Parameter Sets: Hostname
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the IDN hostname of the URI should be returned.
Type: SwitchParameter
Parameter Sets: IdnHost
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the OS-localized path of the URI should be returned.
Type: SwitchParameter
Parameter Sets: LocalPath
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the absolute path and query of the URI should be returned, separated by ‘?’.
Type: SwitchParameter
Parameter Sets: PathAndQuery
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the port number of the URI should be returned.
Type: SwitchParameter
Parameter Sets: Port
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the querystring of the URI should be returned, including the leading ‘?’.
Type: SwitchParameter
Parameter Sets: Query
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the querystring of the URI should be returned, as a Hashtable.
Type: SwitchParameter
Parameter Sets: QueryAsDictionary
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the scheme of the URI should be returned (http, &c), without the trailing ‘:’.
Type: SwitchParameter
Parameter Sets: Scheme
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates the specified segment index of the URI should be returned, if is available.
Type: Int32
Parameter Sets: Segment
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.