PSDrive

In PowerShell, various items are treated as PSDrive.

While the command prompt can only handle file system drives,
PowerShell can handle the following items as PSDrive.

  • File system
  • Registry
  • Digital Signature
  • Environment variables
  • Aliases
  • Script Variables
  • Functions
  • WS-Management Configuration Information

Managing Windows PowerShell Drives | Microsoft Docs
https://docs.microsoft.com/en-us/powershell/scripting/samples/managing-windows-powershell-drives

PS Env:\> Get-PSDrive
 
Name           Used (GB)     Free (GB) Provider      Root
----           ---------     --------- --------      ----
Alias                                  Alias
C                 777.77         77.77 FileSystem    C:\
Cert                                   Certificate   \
D                                      FileSystem    D:\
Env                                    Environment
Function                               Function
HKCU                                   Registry      HKEY_CURRENT_USER
HKLM                                   Registry      HKEY_LOCAL_MACHINE
P                7777.77        777.77 FileSystem    \\Server\workPC$
Q                 777.77       7777.77 FileSystem    \\Server\temp$
Variable                               Variable
WSMan                                  WSMan

For example, the environment variable is treated as an item of the Env-drive in the PSDrive.

Environment Variables | miajimyu note

YouTube

Click here for a video explanation.

Managing Windows PowerShell Drives | Microsoft Docs