mirror of
https://github.com/inspec/inspec
synced 2024-12-29 22:43:25 +00:00
a5309ea392
Signed-off-by: Ryan Davis <zenspider@chef.io>
13 lines
339 B
Ruby
13 lines
339 B
Ruby
#
|
|
# 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
|