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

get-psProvider
Powershell command noun: psDrive

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1759384153, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/command-inventory/noun/psDrive/get(71): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78