Skip to main content

Set-Environmental Path Variable

Summary

This document will guide you through the process of adding a requested Windows path to the environmental path variable for the desired scope.

Sample Run

  • Setting a user-scoped path variable

User Scoped Path Variable

  • Setting more than one machine-scoped path variable.

Machine Scoped Path Variables

NOTE: The scope is not mandatory; if left blank, the scope will default to the machine-scoped variable.

Dependencies

Variables

Standard agnostic template variables apply.

User Parameters

NameExampleRequiredDescription
PathC:/windows, C:/temp...TrueThe paths that must exist in the scoped environmental path variable.
ScopeUserMachineFalseThe scope of the environmental path variable you wish to target. This defaults to 'Machine'.

Process

Please reference EPM - Windows Configuration - Agnostic - Set-PathVariable for process information.

Output

  • Script log