title: Powershell env:dir variables
body: <p>I'm using powershell 4 when I run <code>$env:logonserver</code> I don't get any results, when I use the same command in powershell 3 it works great.  On my box with powershell 4 when I use cmd and run <code>%logonserver%</code> I get the result I'm looking for.  </p>
  
  <p>My question is does anyone know how to bring <code>$env:logonserver</code> back or another method to get the same result?  I use this command as part of my logon script. </p>