Puppet Class: windows::refresh_environment
- Defined in:
- manifests/refresh_environment.pp
Overview
Class: windows::refresh_environment
Refresh the Windows Environment. Makes it possible to have updated Windows environment variables (e.g., the %Path%) without logging off or restarting.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'manifests/refresh_environment.pp', line 6
class windows::refresh_environment(
$command_template = 'windows/refresh_environment.ps1.erb',
$refreshonly = true,
$unless = undef,
$onlyif = undef,
$provider = 'powershell',
){
exec { 'windows-refresh-environemnt':
command => template($command_template),
refreshonly => $refreshonly,
unless => $unless,
onlyif => $onlyif,
provider => $provider,
}
}
|