Search notes:

PowerShell cmdLet get-psDrive

PS: 14 C:\Users\rene> get-psDrive

Name           Used (GB)     Free (GB) Provider      Root                        CurrentLocation
----           ---------     --------- --------      ----                        ---------------
Alias                                  Alias
C                  88.13        149.44 FileSystem    C:\                         Users\rene
Cert                                   Certificate   \
Env                                    Environment
Function                               Function
H                  88.13        149.44 FileSystem    \\server-01\abc\def         Control Panel
HKCU                                   Registry      HKEY_CURRENT_USER
HKLM                                   Registry      HKEY_LOCAL_MACHINE
O                3299.26        796.74 FileSystem    \\server-01\other
P                 715.04        308.96 FileSystem    \\server-01\project
V                                      FileSystem    \\server-02\documents
Variable                               Variable
WSMan                                  WSMan
Y                  88.13        149.44 FileSystem    \\server-03\u

Current location

Drives whose privider is file system or registry have a current location. This location is set with the cmdLet set-location (for the respective drive).
PS D:\bla> get-psDrive -psProvider fileSystem  | select-object name, currentLocation

Name CurrentLocation
---- ---------------
C    Users\Rene
D
The location of the «current» drive can be determined with get-location.

See also

Powershell command noun: psDrive

Index