1

I work on Windows 7 and I wont to know how to set and print environment variable in Power Shell (for example $PATH)?

1 Answer 1

1

List Environment Variables

Get-ChildItem Env:

Get specific Variable

$Env:path

Modifying/Creating Environment Variables

$env:TestVariable = "This is a test environment variable."

Additional Information: http://technet.microsoft.com/en-us/library/ff730964.aspx?ppud=4

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .