# File lib/chef/provider/service/windows.rb, line 103
  def enable_service()
    begin
      Chef::Log.debug result = IO.popen("#{@init_command} config #{@new_resource.service_name} start= #{determine_startup_type}").readlines.join
      result.include?('SUCCESS')
    rescue
      Chef::Log.debug "Failed to enable service #{@new_resource.service_name}"
      false
    end
  end