If you’ve worked with cmd.exe or other shell environments, you might be familiar with environmental variables.

PowerShell exposes these variables in two different ways. (Actually it’s the same way, but don’t tell anyone..)

So, Spit It Out Already..

First, I can access environmental variables through the provider.

dir env:</pre>

All my standard commands in navigating and retrieving items from a provider (Get-Item, Set-Item, New-Item, etc..) work in interacting with these variables.



### And The Other One?




The other access method also uses the provider, but it accesses it in a bit different way..&#160; By using the &quot;$&quot; and the PSDrive name.