Using providers and PSDrives

Until now, you have only seen cmdlets. Cmdlets are PowerShell commands. PowerShell has another import concept named providers. Providers are accessed through named drives or PSDrives. In the following sections, Using providers and Using PSDrives, providers and PSDrives will be explained.

Using providers

A PowerShell provider is a piece of software that makes datastores look like filesystems. PowerShell providers are usually part of a snap-in or a module-like PowerCLI. The advantage of providers is that you can use the same cmdlets for all the providers. These cmdlets have the following nouns: Item, ChildItem, Content, and ItemProperty. You can use the Get-Command cmdlet to get a list of all the cmdlets with these nouns: ...

Get Learning PowerCLI - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.