Environment
Environment copied to clipboard
A module for working with Environment Variables and especially Path variables in a cross-platform way
The Environment PowerShell module is a module for dealing with Paths and Environment variables.
Set-EnvironmentVariableallows you to set an Environment variable permanently at the Machine or User level, or temporarily at the process level.Select-UniquePathallows you to de-dupe an array of path stringsAdd-Pathuses the first two to add folders to path variables like$Env:PSModulePathor$Env:PATHwithout duplicationSet-AliasToFirstsearches a list of paths to find the first instance of an app and create an alias pointed to it (allowing you to avoid adding folders to the environment Path variable for a single application).Get-SpecialFolderhelps Windows users find special folders (like the user's desktop)Trace-Messagewrites verbose (or debug or warning) messages with timestamps for script timing
Install-Module Environment