Resolves the wildcard characters in a path, and displays the path contents. (Resolve-Path)

   

# NAME
Resolve-Path

# SYNOPSIS
Resolves the wildcard characters in a path, and displays the path contents.

# SYNTAX
Resolve-Path [-LiteralPath] <string[]> [-Credential <PSCredential>] [-Relative] [-UseTransaction] [<CommonParameters>]

Resolve-Path [-Path] <string[]> [-Credential <PSCredential>] [-Relative] [-UseTransaction] [<CommonParameters>]

# DESCRIPTION
The Resolve-Path cmdlet interprets the wildcard characters in a path and displays the items and containers at the location specified by the path, such as the files and folders or registry keys and subkeys.

# PARAMETERS
-Credential <PSCredential>
Specifies a user account that has permission to perform this action. The default is the current user.

Type a user name, such as "User01" or "Domain01\User01". Or, enter a PSCredential object, such as one generated by the Get-Credential cmdlet. If you type a user name, you will be prompted for a password.

This parameter is not supported by any providers installed with Windows PowerShell.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-LiteralPath <string[]>
Specifies the path to be resolved. The value of LiteralPath is used exactly as it is typed. No characters are interpreted as wildcards. If the path includes escape characters, enclose it in single quotation marks. Single quotation marks tell Windows PowerShell not to interpret any characters as escape sequences.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Path <string[]>
Specifies the Windows PowerShell path to resolve. This parameter is required. You can also pipe a path string to Resolve-Path.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Relative [<SwitchParameter>]
Returns a relative path.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-UseTransaction [<SwitchParameter>]
Includes the command in the active transaction. This parameter is valid only when a transaction is in progress. For more information, see about_Transactions.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

# INPUTS
System.String
You can pipe a string that contains a path to Resolve-Path.

# OUTPUTS
System.String
Resolve-Path returns a string that contains the resolved path.

# NOTES

The cmdlets that contain the Path noun (the Path cmdlets) manipulate path names and return the names in a concise format that all Windows PowerShell providers can interpret. They are designed for use in programs and scripts where you want to display all or part of a path name in a particular format. Use them like you would use Dirname, Normpath, Realpath, Join, or other path manipulators.

You can use the Path cmdlets with several providers, including the FileSystem, Registry, and Certificate providers.

The Resolve-Path cmdlet is designed to work with the data exposed by any provider. To list the providers available in your session, type "Get-PSProvider". For more information, see about_Providers.

# EXAMPLE 1

C:\PS>resolve-path ~

C:\Users\User01

# Description
-----------
This command resolves the path represented by the tilde character (~), which signifies the home path.

# EXAMPLE 2

C:\PS>resolve-path windows

C:\Windows

# Description
-----------
When run from the root of the C: drive, this command returns the path to the Windows directory in the C: drive.

# EXAMPLE 3

C:\PS>"C:\windows\*" | resolve-path

# Description
-----------
This command returns all of the directories in the C:\Windows directory. The command uses a pipeline operator (|) to send a path string to Resolve-Path.

# EXAMPLE 4

C:\PS>resolve-path \\Server01\public

# Description
-----------
This command resolves a Universal Naming Convention (UNC) path and returns the shares in the path.

# EXAMPLE 5

C:\PS>resolve-path c:\prog* -relative

..\Program Files
..\Program Files (x86)
..\programs.txt

# Description
-----------
This command returns relative paths for the directories at the root of the C: drive.

# EXAMPLE 6

C:\PS>resolve-path -literalPath test[xml]

# Description
-----------
This command resolves the path to the Test[xml] subdirectory of the current directory. It uses the LiteralPath parameter to indicate that the brackets are not regular expression characters.

RELATED LINKS
Online version: http://go.microsoft.com/fwlink/?LinkID=113384
about_Providers
Test-Path
Split-Path
Convert-Path
Join-Path

C:\Windows>powershell get-help Get-Service -full

ColorConsole [Version 1.7.1000] PowerShell 2.0-Export
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2014 Microsoft Corporation.

OS: Windows 10, 8.1, 8, 7, Vista / Windows Server 2016, 2012, 2008
»»»» ColorConsole





... Home  
... Impressum
... ColorConsole

... CMD
... Netsh-XP
... Netsh-7
... Netsh-Vista
... Powershell










Download the Windows 10 Starter, Home (Basic Premium), Professional und Ultimate!

... facebook.de
HTTP: ... PS_Windows/en/Resolve-Path.htm
0.108

Wie kann ich das nervige Klicken im Windows Internet Explorer abschalten?

 /

Must Windows 7, 8, or 8.1 always be installed on NTFS disk partition?

 /

Passwort Reset Datenträger für Windows 8.1/10 und Acht (Kennwort)!

 /

Change user password in Windows 10, via NET USER command, how to?

 /