Check for disabled instead of auto

This commit is contained in:
Twangboy 2022-11-01 09:31:23 -06:00
parent 327664a375
commit 2ff4fada37
No known key found for this signature in database
GPG key ID: ED267D5C0DE6F8A6

View file

@ -108,7 +108,7 @@ def __virtual__():
"be disabled",
)
if not salt.utils.win_service.info("CryptSvc")["StartType"] == "Auto":
if salt.utils.win_service.info("CryptSvc")["StartType"] == "Disabled":
return (
False,
"WUA: The Cryptographic Services service (CryptSvc) must not be disabled",