CmdID / PowerShell / Cmdlets / Convert
Convert-Path
Converts a path from a PowerShell path to a PowerShell provider path. PowerShell reference
From the PowerShell reference
3 parameters
Alias cvpa
What it does
Converts a path from a PowerShell path to a PowerShell provider path. The Convert-Path cmdlet converts a path from a PowerShell path to a PowerShell provider path.
Convert-Path [-Path] <String[]> [-UseTransaction] [<CommonParameters>]Convert-Path -LiteralPath <String[]> [-UseTransaction] [<CommonParameters>]
Convert the working directory to a standard file system path
PS C:> Convert-Path .
C:\IdentifyConvert a provider path to a standard registry path
PS C:> Convert-Path HKLM:\Software\Microsoft
HKEY_LOCAL_MACHINE\Software\MicrosoftIdentifyConvert a path to a string
PS C:> Convert-Path ~
C:\Users\User01IdentifyIts page in the reference: Convert-Path.
Parameters
-LiteralPathSpecifies, as a string array, the path to be converted. The value of the LiteralPath parameter is used exactly as it's typed. No characters are interpreted as wildcards. 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.
For more information, see about_Quoting_Rules.-PathSpecifies the PowerShell path to be converted.-UseTransactionIncludes the command in the active transaction. This parameter is valid only when a transaction is in progress. For more information, see about_Transactions.