Re: environment variables in powershell

Home Forums Scripting PowerShell environment variables in powershell Re: environment variables in powershell


Ossian
Moderator
#185594

Re: environment variables in powershell

Could you post the script for us to help you with?
In general, you use $env:username type syntax, i.e. put in the actual name of the environment variable

http://blogs.technet.com/b/heyscriptingguy/archive/2007/07/12/how-can-i-use-windows-powershell-to-retrieve-environment-variables-and-special-folder-paths.aspx