mirror of
https://github.com/inspec/inspec
synced 2024-11-24 05:33:17 +00:00
2495fd8196
Signed-off-by: Omar J Irizarry <irizarry_omar_j@network.lilly.com>
15 lines
381 B
Ruby
15 lines
381 B
Ruby
# encoding: utf-8
|
|
# author: Omar Irizarry
|
|
#
|
|
# change a few Windows registry keys for testing purposes
|
|
if node['platform_family'] == 'windows'
|
|
powershell_script 'Write User TEMP' do
|
|
code <<-EOH
|
|
[System.Environment]::SetEnvironmentVariable('TEMP', 'C:\\TEMPUSER', [System.environmentVariableTarget]::User)
|
|
EOH
|
|
end
|
|
|
|
env 'TEMP' do
|
|
value 'C:\TEMPSYSTEM'
|
|
end
|
|
end
|