Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 492 Bytes

Readme.md

File metadata and controls

30 lines (25 loc) · 492 Bytes

env-exporter

PowerShell script to export computer's environment variables to a file. Useful for bookkeeping.

Usage:

$ ./Export-Env.ps1 E:/Temp/env.json

It will save the file of the following format:

[
    {
        "scope": "User",
        "variables": [
            { "name": "var1", "value": "value1" }
        ]
    },
    {
        "scope": "Machine",
        "variables": [
            { "name": "var1", "value": "value1" }
        ]
    }
]