PowerShell Drives (PSDrives)

PowerShell Drives (PSDrives) are abstractions of file systems which allow one to access and treat various data stores as if they were file systems.

PowerShell provides a few PSDrives by default.

PSDriveMeaning
File System Drives (C, D, etc.)These are direct mappings to the file system drives.
Registry Drives (HKCU, HKLM)These correspond to the keys in the Windows registry.
CertStores all installed certificates.
EnvContains all environment variables.
VariablesStores all defined variables.
FunctionsContains all defined functions.

To navigate to a path within a PowerShell drive, you need to add a colon (:) to its name - for example C:\, Env:\, etc.

Managing PSDrives