Chapter 5. The PowerShell Navigation Model

Besides object pipelining, Windows PowerShell (WPS) has another interesting concept to offer: the uniform navigation paradigm for all kinds of data. The call of the command Get-PSDrive not only lists expected drives but also environment variables (env), the registry (HKCU, HKLM), Windows certificate store (cert), PowerShell aliases (Alias), PowerShell variables (Variable), and PowerShell functions (Function). WPS interprets this data also as drives. Consequently, you have to use a colon in the call: Get-ChildItem Alias: lists all defined aliases, just like Get-Alias.

Navigation through ...

Get Essential PowerShell 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.