< Back

Get-CPathProvider

Sun Jan 12, 2020 9:47 pm

NAME Get-CPathProvider



SYNOPSIS

Returns a path's PowerShell provider.





SYNTAX

Get-CPathProvider [-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

-Path <String>

The path whose provider to get.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Management.Automation.ProviderInfo.





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-CPathProvider -Path 'C:\\Windows'



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











RELATED LINKS