Introduction to providers

Providers in PowerShell present access to data that is not normally easily accessible. There are providers for the filesystem, registry, certificate store, and so on. Each provider arranges data so that it resembles a filesystem.

PowerShell Core: What happened to provider help?

PowerShell Core does not include Provider help files. Help may be viewed either online or in Windows PowerShell.

A longer description of Providers may be seen by viewing the about file:

Get-Help about_Providers

The list of providers available in the current PowerShell session may be viewed by running Get-PSProvider, as shown in the following example:

PS> Get-PSProvider

Name Capabilities Drives
---- ------------ ------
Registry ShouldProcess, Transactions {HKLM, HKCU}
Alias ShouldProcess {Alias}
Environment ShouldProcess {Env}
FileSystem Filter, ShouldProcess, Credentials {C, D}
Function ShouldProcess {Function}
Variable ShouldProcess {Variable}
Certificate ShouldProcess {Cert}
WSMan Credentials {WSMan}

Each of the previous providers has a help file associated with it. These can be accessed using the following code:

Get-Help -Name <ProviderName> -Category Provider 

For example, the help file for the certificate provider may be viewed by running the following code:

Get-Help -Name Certificate -Category Provider 

A list of all help files for providers may be seen by running the following code:

Get-Help -Category Provider 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.142.115