mirror of
https://github.com/inspec/inspec
synced 2024-11-10 23:24:18 +00:00
Updated Windows Service check for Enabled state to allow both Auto and
Manual to be considered valid states for a service to be enabled. Signed-off-by: Douglas <bdougl6@ms.ds.uhc.com>
This commit is contained in:
parent
5624579441
commit
5e56bd4635
1 changed files with 2 additions and 1 deletions
|
@ -613,7 +613,8 @@ module Inspec::Resources
|
|||
def service_enabled?(service)
|
||||
!service['WMI'].nil? &&
|
||||
!service['WMI']['StartMode'].nil? &&
|
||||
service['WMI']['StartMode'] == 'Auto'
|
||||
(service['WMI']['StartMode'] == 'Auto' ||
|
||||
service['WMI']['StartMode'] == 'Manual')
|
||||
end
|
||||
|
||||
# detect if service is running
|
||||
|
|
Loading…
Reference in a new issue