Get-PSProvider - Overview & Examples

April 15, 2018 0 Comments PowerShell

SYNOPSIS

Gets information about the specified Windows PowerShell provider.

CMDLET ALIASES

No aliases exist for this cmdlet

SYNTAX

Get-PSProvider [[-PSProvider] <String[]>] [<CommonParameters>]

DESCRIPTION

The Get-PSProvider cmdlet gets the Windows PowerShell providers in the current session. You can get a particular drive or all drives in the session.

Windows PowerShell providers let you access a variety of data stores as though they were file system drives. For information about Windows PowerShell providers, see about_Providers.

Real World Examples:

PS C:\WINDOWS\system32> Get-PSProvider
Name                 Capabilities                                                          Drives
----                 ------------                                                          ------
Registry             ShouldProcess, Transactions                                           {HKLM, HKCU}
Alias                ShouldProcess                                                         {Alias}
Environment          ShouldProcess                                                         {Env}
FileSystem           Filter, ShouldProcess, Credentials                                    {C, D, F, G..
Function             ShouldProcess                                                         {Function}
Variable             ShouldProcess                                                         {Variable}