Get-PSDrive
List drives PowerShell can see
Get-PSDrive
- Works on
- WindowsLinuxmacOS
- PowerShell
- 5.1 and later
- Reference
- Microsoft Learn: Get-PSDrive
PowerShell drives are not just C:. Env: is environment variables. HKCU: is the current-user registry. Variable: is in-memory variables.
Try this
Get-PSDrive -PSProvider FileSystem
Get-ChildItem Env:TEMP
Coming from another shell
| Shell | What you might type |
|---|---|
| bash / zsh | df -h |