https://github.com/fornever/env-exporter
Export computer's environment variables to a file.
https://github.com/fornever/env-exporter
environment-variables powershell
Last synced: 4 months ago
JSON representation
Export computer's environment variables to a file.
- Host: GitHub
- URL: https://github.com/fornever/env-exporter
- Owner: ForNeVeR
- License: mit
- Created: 2017-09-21T16:28:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-01T05:17:52.000Z (over 8 years ago)
- Last Synced: 2025-04-04T17:48:40.843Z (10 months ago)
- Topics: environment-variables, powershell
- Language: PowerShell
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: License.md
Awesome Lists containing this project
README
env-exporter
============
PowerShell script to export computer's environment variables to a file. Useful
for bookkeeping.
Usage:
```console
$ ./Export-Env.ps1 E:/Temp/env.json
```
It will save the file of the following format:
```json
[
{
"scope": "User",
"variables": [
{ "name": "var1", "value": "value1" }
]
},
{
"scope": "Machine",
"variables": [
{ "name": "var1", "value": "value1" }
]
}
]
```