Skip to content

Windows tricksΒΆ

Edit environment variables without admin accessΒΆ

Execute command in run window

PowerShell
rundll32 sysdm.cpl,EditEnvironmentVariables

Alternatively environment variables can be set using powershellΒΆ

PowerShell
[Environment]::SetEnvironmentVariable("HOME", "C:\path\to\home", "User")

List all the variables

PowerShell
Get-ChildItem Env:

Or, show particular environment variable

PowerShell
Get-ChildItem Env:HOME