liveBook · Manning

Chapter 5: Working with providers

What you will learn in chapter 5 of Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS

Introduces providers as PowerShell’s way to present specialized data stores as drives for easier viewing and management.

After this chapter you will be able to

Section by section

Introduction

Introduces providers as PowerShell’s way to present specialized data stores as drives for easier viewing and management.

Key terms: provider, specialized data stores, drive

5.1 What are providers?

This section explains how PowerShell providers adapt data stores into drive-like views, how PSDrives expose those views, and why provider capabilities matter.

Key terms: PowerShell provider, PSProvider, data storage, capabilities, ShouldProcess, Filter, Credentials, PSDrive, Item

5.2 Understanding how the filesystem is organized

This section explains how filesystem files and folders map to PowerShell’s generic item terminology, and why provider capabilities determine which operations work.

Key terms: folders, files, container, PSDrive, Item, ItemProperty, ChildItem, PSProvider, FileSystem provider, Environment PSProvider

5.3 Navigating the filesystem

This section explains how to change the current filesystem location, create a directory, and interpret drives on non-Windows systems.

Key terms: Set-Location, cd, current location, positional parameter, New-Item, -ItemType, directory, mkdir, root, PSDrives

5.4 Using wildcards and literal paths

This section explains how Item cmdlets interpret wildcard characters in paths and how to specify paths containing those characters literally.

Key terms: -Path, wildcards, *, ?, -LiteralPath, positional

5.5 Working with other providers

Introduces the Environment provider as a cross-platform way to explore a non-filesystem PSDrive and item cmdlets.

Key terms: PSDrive, item cmdlets, Environment

5.5.1 Windows Registry

This subsection applies PowerShell provider navigation to the Windows Registry by changing a Registry value and checking the result.

Key terms: Registry, HKEY_CURRENT_USER, HKCU: drive, EnableAeroPeek

5.6 Lab

5.7 Lab answers

Concepts explained in this chapter

← Chapter 4: Running commands Chapter 6: The pipeline: Connecting commands →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.