• Home
  • About
  • Contact
  • Resources
  • News
  • Home
  • About
  • Contact
  • Resources
  • News
Powershell Newbie

Get | Set | Start

PSDrives

1/2/2018

0 Comments

 
PowerShell uses PSDrives that work and include your file system drives. To locate the available use the Get-PSDrive Cmdlet:
Picture
Notice the Alias drive. You can navigate to these drives as you would a file system drive:
cd alias:
Now you can type dir to get a list of aliases.
Try doing the same with the Env: drive. It allows you to browse the environmental variables drive. Or the HKLU and HKLM which allow for navigation through the registry. Just be careful. Better yet do this on a virtual machine in a test environment and feel free to experiment.
​Happy navigating!
0 Comments



Leave a Reply.

    Joshua B. Jones, VCP6-DCV

    Professional PowerShell Fan, Automation & Virtualization Expert

    Archives

    February 2018
    January 2018
    December 2017
    November 2017
    May 2017
    August 2016

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.