The department is:
The full name of the cop is:
|Enabled by default||Supports autocorrection||Target Chef Version|
The sc_windows resource from the sc cookbook allowed for the creation of windows services on legacy Chef Infra Client releases. Chef Infra Client 14.0 and later includes :create, :delete, and :configure actions without the need for additional cookbook dependencies. See the windows_service documentation at https://docs.chef.io/resources/windows_service for additional details on creating services with the windows_service resource.
sc_windows 'chef-client' do path "C:\\opscode\\chef\\bin" action :create end
windows_service 'chef-client' do action :create binary_path_name "C:\\opscode\\chef\\bin" end
|Name||Default value||Configurable values|
Was this page helpful?