def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\schtasks.exe"),
                    event.deep_get("OriginalFileName", default="") == "schtasks.exe",
                ]
            ),
            any(
                [
                    "-disable" in event.deep_get("CommandLine", default=""),
                    "/disable" in event.deep_get("CommandLine", default=""),
                    "–disable" in event.deep_get("CommandLine", default=""),
                    "—disable" in event.deep_get("CommandLine", default=""),
                    "―disable" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    "\\Windows\\BitLocker" in event.deep_get("CommandLine", default=""),
                    "\\Windows\\ExploitGuard" in event.deep_get("CommandLine", default=""),
                    "\\Windows\\ExploitGuard\\ExploitGuard MDM policy Refresh"
                    in event.deep_get("CommandLine", default=""),
                    "\\Windows\\SystemRestore\\SR" in event.deep_get("CommandLine", default=""),
                    "\\Windows\\UpdateOrchestrator\\" in event.deep_get("CommandLine", default=""),
                    "\\Windows\\Windows Defender\\" in event.deep_get("CommandLine", default=""),
                    "\\Windows\\WindowsBackup\\" in event.deep_get("CommandLine", default=""),
                    "\\Windows\\WindowsUpdate\\" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
