Chapter 3: Leveraging PowerShell Providers


image from book Download CD Content

Overview

After completing this chapter, you will be able to:

  • Understand the role of providers in Windows PowerShell

  • Use the Get-PSProvider cmdlet

  • Use the Get-PSDrive cmdlet

  • Use the Get-Item cmdlet

  • Use the Set-Location cmdlet

  • Use the file system model to access data from each of the built-in providers

Windows PowerShell provides a consistent way to access information external to the shell environment. To do this, it uses providers. These providers are actually .NET programs that hide all the ugly details to provide an easy way to access information. The beautiful thing about the way the provider model works is that all the different sources of information are accessed in exactly the same manner. This chapter demonstrates how to leverage the PowerShell providers. All the scripts mentioned in this chapter can be found in the corresponding scripts folder on the CD.




Microsoft Press - Microsoft Windows PowerShell Step by Step
MicrosoftВ® Windows PowerShell(TM) Step By Step (Step By Step (Microsoft))
ISBN: 0735623953
EAN: 2147483647
Year: 2007
Pages: 128
Authors: Ed Wilson

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net