PowerShell Logo Small

Get-PSProvider



This is the built-in help made by Microsoft for the command 'Get-PSProvider', in PowerShell version 2 - as retrieved from Windows version 'Microsoft® Windows Vista™ Ultimate ' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets information about the specified Windows PowerShell provider.

SYNTAX


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



Search powershellhelp.space

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 sessi
on.

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



<

RELATED LINKS


Online version: http://go.microsoft.com/fwlink/?LinkID=113329
about_Providers

REMARKS

<

Examples


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

C:\PS>get-psprovider



Description
-----------
This command displays a list of all available Windows PowerShell providers.








-------------------------- EXAMPLE 2 --------------------------

C:\PS>get-psprovider f*, r* | format-list



Description
-----------
This command displays a list of all Windows PowerShell providers with names that begin with the letter "f" or "r".








-------------------------- EXAMPLE 3 --------------------------

C:\PS>get-psprovider | format-table name, module, pssnapin -auto


Name Module PSSnapIn
---- ------ --------
Test TestModule
WSMan Microsoft.WSMan.Management
Alias Microsoft.PowerShell.Core
Environment Microsoft.PowerShell.Core
FileSystem Microsoft.PowerShell.Core
Function Microsoft.PowerShell.Core
Registry Microsoft.PowerShell.Core
Variable Microsoft.PowerShell.Core
Certificate Microsoft.PowerShell.Security

C:\PS> get-psprovider | where {$_.pssnapin -eq "Microsoft.PowerShell.Security"}

Name Capabilities Drives
---- ------------ ------
Certificate ShouldProcess {cert}



Description
-----------
These commands find the Windows PowerShell snap-ins or modules that added providers to your session. All Windows PowerShell elements, including p
roviders, originate in a snap-in or in a module.

These commands use the PSSnapin and Module properties of the ProviderInfo object that Get-PSProvider returns. The values of these properties cont
ain the name of the snap-in or module that adds the provider.

The first command gets all of the providers in the session and formats them in a table with the values of their Name, Module, and PSSnapin proper
ties.

The second command uses the Where-Object cmdlet to get the providers that come from the Microsoft.PowerShell.Security snap-in.