diff options
author | Davin Taddeo <davin@chef.io> | 2020-06-26 15:21:24 -0400 |
---|---|---|
committer | Davin Taddeo <davin@chef.io> | 2020-06-26 15:21:24 -0400 |
commit | a01fc792ec56e71f0d40f83be900844d859cc722 (patch) | |
tree | 981df3520aecd5084822940b50678470c50cea17 | |
parent | c63702d2c00dd089438734cf4da83d65f70dbc3c (diff) | |
download | chef-a01fc792ec56e71f0d40f83be900844d859cc722.tar.gz |
more cspell errors fixed, and hopefull windows_functionality is happy now
Signed-off-by: Davin Taddeo <davin@chef.io>
-rw-r--r-- | lib/chef/resource/windows_security_policy.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/resource/windows_security_policy.rb b/lib/chef/resource/windows_security_policy.rb index 005ed4413a..34f7bd0021 100644 --- a/lib/chef/resource/windows_security_policy.rb +++ b/lib/chef/resource/windows_security_policy.rb @@ -117,10 +117,10 @@ class Chef action_class do def load_security_options_state <<-EOH - C:\\Windows\\System32\\secedit /export /cfg $env:TEMP\\secopts_export.inf | Out-Null + C:\\Windows\\System32\\secedit /export /cfg $env:TEMP\\security_options_export.inf | Out-Null # cspell:disable-next-line - $security_options_data = (Get-Content $env:TEMP\\secopts_export.inf | Select-String -Pattern "^[CEFLMNPR].* =.*$" | Out-String) - Remove-Item $env:TEMP\\secopts_export.inf -force + $security_options_data = (Get-Content $env:TEMP\\security_options_export.inf | Select-String -Pattern "^[CEFLMNPR].* =.*$" | Out-String) + Remove-Item $env:TEMP\\security_options_export.inf -force $security_options_hash = ($security_options_data -Replace '"'| ConvertFrom-StringData) ([PSCustomObject]@{ RequireLogonToChangePassword = $security_options_hash.RequireLogonToChangePassword |