Correcting PowerShell Paths

by Jul 30, 2014

All PowerShell versions

Occasionally, you might stumble across strange path formats like this one:

Microsoft.PowerShell.Core\FileSystem::C:\windows\explorer.exe

This is a full PowerShell path name which includes the module name and provider name that is attached to this path. To get the pure path name, use this:

Convert-Path -Path Microsoft.PowerShell.Core\FileSystem::C:\windows\explorer.exe

Twitter This Tip! ReTweet this Tip!