CmdID / PowerShell / Cmdlets / Resolve
Resolve-Path
Resolves the wildcard characters in a path, and displays the path contents. PowerShell reference
From the PowerShell reference
5 parameters
Alias rvpa
What it does
Resolves the wildcard characters in a path, and displays the path contents. The Resolve-Path cmdlet displays the items and containers that match the wildcard pattern at the location specified. The match can include files, folders, registry keys, or any other object accessible from a PSDrive provider.
Resolve-Path [-Path] <String[]> [-Relative] [-Credential <PSCredential>] [-UseTransaction] [<CommonParameters>]Resolve-Path -LiteralPath <String[]> [-Relative] [-Credential <PSCredential>] [-UseTransaction] [<CommonParameters>]
Resolve the home folder path
Resolve-Path ~IdentifyResolve the path of the Windows folder
Resolve-Path -Path "windows"IdentifyGet all paths in the Windows folder
"C:\windows\*" | Resolve-PathIdentifyResolve a UNC path
Resolve-Path -Path "\\Server01\public"IdentifyGet relative paths
Resolve-Path -Path "C:\prog*" -RelativeIdentifyResolve a path containing brackets
Resolve-Path -LiteralPath 'test[xml]'IdentifyIts page in the reference: Resolve-Path.
Parameters
-CredentialSpecifies a user account that has permission to perform this action. The default is the current user.
This parameter is not supported by any providers installed with PowerShell.-LiteralPathSpecifies the path to be resolved. The value of the LiteralPath parameter is used exactly as typed. No characters are interpreted as wildcard characters. If the path includes escape characters, enclose it in single quotation marks ('). Single quotation marks tell PowerShell not to interpret any characters as escape sequences.-PathSpecifies the PowerShell path to resolve. This parameter is required. You can also pipe a path string to Resolve-Path. Wildcard characters are permitted.-RelativeIndicates that this cmdlet returns a relative path.-UseTransactionIncludes the command in the active transaction. This parameter is valid only when a transaction is in progress. For more information, see about_Transactions.