Manage the Windows System PATH
Note that not all Windows applications will rehash the PATH environment variable, Only the ones that listen to the WM_SETTINGCHANGE message http://support.microsoft.com/kb/104011
Add the directory to the SYSTEM path in the index location
CLI Example:
# Will add to the beginning of the path
salt '*' win_path.add 'c:\python27' 0
# Will add to the end of the path
salt '*' win_path.add 'c:\python27' index='-1'
Check if the directory is configured in the SYSTEM path Case-insensitive and ignores trailing backslash
CLI Example:
salt '*' win_path.exists 'c:\python27'
salt '*' win_path.exists 'c:\python27\'
salt '*' win_path.exists 'C:\pyThon27'
Returns the system path
Send a WM_SETTINGCHANGE Broadcast to Windows to rehash the Environment variables
Remove the directory from the SYSTEM path
Docs for previous releases are available on salt.rtfd.org.
Latest Salt release: 2014.7.1
22.16.226. salt.modules.win_ntp
22.16.228. salt.modules.win_pkg
Upcoming SaltStack events, webinars and local meet ups and user groups.