def rule(event):
    if all(
        [
            "Enable-WindowsOptionalFeature" in event.deep_get("CommandLine", default=""),
            "-Online" in event.deep_get("CommandLine", default=""),
            "-FeatureName" in event.deep_get("CommandLine", default=""),
            any(
                [
                    "TelnetServer" in event.deep_get("CommandLine", default=""),
                    "Internet-Explorer-Optional-amd64" in event.deep_get("CommandLine", default=""),
                    "TFTP" in event.deep_get("CommandLine", default=""),
                    "SMB1Protocol" in event.deep_get("CommandLine", default=""),
                    "Client-ProjFS" in event.deep_get("CommandLine", default=""),
                    "Microsoft-Windows-Subsystem-Linux"
                    in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
