Announcement

Collapse
No announcement yet.

Get List of Environment Variables

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Get List of Environment Variables

    Please use the below script to get list of environment variables from the target machine

    Code:
    import os
    for param in os.environ.keys():
        print "%s=%s"%(param, os.environ[param])
    Sample Output:
    Click image for larger version

Name:	listEnvironmentVariables.png
Views:	1
Size:	32.2 KB
ID:	4553

    Last edited by Purushothaman; 11-04-2016, 01:02 PM.
Working...
X