Get drive information (gdr)
Syntax
Get-PSDrive { [[-name] string[]] | [-literalName] string[] }
[-pSProvider string[]] [-scope string] [CommonParameters]
Key
-name string
The PowerShell drive name(s), separate multiple names with commas.
-literalName string
The Drive name which will be used exactly as typed.
No characters are interpreted as wildcards. If the name includes escape
characters, enclose it in single quotation marks.
-pSProvider
Return the PSDriveInfo object for all of the drives exposed by
the specified provider(s).
-scope
The scope within which to search for the drive.
CommonParameters:
-Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutVariable.
Examples
Display information about all currently visible drives:
PS C:\>get-psdrive
Display information for drives with names that begin with HK (registry: HKLM, HKCU etc):
PS C:\>get-psdrive HK*
"Heaven wheels above you, displaying to you her eternal glories, and still your eyes are on the ground" - Dante Alighieri
Related:
New-PSDrive - Install a new drive on the machine
Remove-PSDrive - Remove a provider/drive from its location
Get-Command - Retrieve basic information about a command
Get-Member - Enumerate the properties of an object
Get-Help - Open the help file
Equivalent bash command: ln - Make links between files