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