Get-PSDrive command in Powershell

PSDrive stands for powershell drive. Powershell stores lot of information in PS drives.

Get-PSDrive command in Powershell shows all PS drives. As you can see in below image, We have below PSDrives apart from regular drives.

  1. Alias
  2. Cert
  3. Env
  4. Function
  5. HKCU
  6. HKLM
  7. Variable
  8. WSMan
get-psdrive-command

get-psdrive-command

To get information about any drive, you can use below syntax.

dir <PSDriveName>:

For example – If you want to view information stored in Variable drive, you can use below command. Note that “:” is required at the end.

dir variable:

 

You may also like...