psdrive command in windows 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.
  • Alias
  • Cert
  • Env
  • Function
  • HKCU
  • HKLM
  • Variable
  • WSMan
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:

Web development and Automation testing

solutions delivered!!