-
Notifications
You must be signed in to change notification settings - Fork 0
Split Uri
external help file: ModernConveniences-help.xml Module Name: ModernConveniences online version: https://msdn.microsoft.com/library/System.Collections.IDictionary.aspx schema: 2.0.0
Splits a URI into component parts.
Split-Uri [-Uri] <Uri> [-AbsolutePath] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-Authority] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-Credential] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-Extension] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-Filename <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-HostNameType] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-Leaf] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-LeafBase] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-ParentPath] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-ParentUri] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-Hostname] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-IdnHost] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-LocalPath] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-PathAndQuery] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-Port] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-Query] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-QueryAsDictionary] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-Scheme] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Split-Uri [-Uri] <Uri> [-Segment <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
{{ Fill in the Description }}
Split-Uri https://webcoder.info/wps-to-psc.html -Leaf
wps-to-psc.html
Split-Uri https://webcoder.info/wps-to-psc.html -Authority
webcoder.info
Split-Uri '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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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: FalseIndicates 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{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.