Get-PathProvider

Returns a path's PowerShell provider.

Syntax

Get-PathProvider [-Path] <String> [<CommonParameters>]

Description

When you want to do something with a path that depends on its provider, use this function. The path doesn't have to exist.

If you pass in a relative path, it is resolved relative to the current directory. So make sure you're in the right place.

Parameters

Name Type Description Required? Pipeline Input Default Value
Path String

The path whose provider to get.

true false

Return Values

System.Management.Automation.ProviderInfo.

EXAMPLE 1

Get-PathProvider -Path 'C:\Windows'

Demonstrates how to get the path provider for an NTFS path.