Refresh-EnvironmentVariables

1.0.2

Refreshes the environment variables in the current PowerShell session.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Refresh-EnvironmentVariables

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • asherto

Tags

PowerShell Windows refresh reload path env environment variable variables update current

Functions

Get-GitHubRelease CheckForUpdate Get-EnvironmentVariable Get-EnvironmentVariableNames Update-SessionEnvironment

Dependencies

This script has no dependencies.

Release Notes

[Version 0.0.1] - Initial Release.
[Version 1.0.0] - Total rework of script, implementing Chocolatey's Update-SessionEnvironment function into one single script.
[Version 1.0.1] - Rename to Refresh-EnvironmentVariables to avoid naming conflicts with Chocolatey's RefreshEnv.cmd.
[Version 1.0.2] - Fix bug with CheckForUpdate.

FileList

Version History

Version Downloads Last updated
1.0.2 (current version) 512 8/30/2023
1.0.1 340 8/30/2023