def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\print.exe"),
            event.deep_get("CommandLine", default="").startswith("print"),
            "/D" in event.deep_get("CommandLine", default=""),
            ".exe" in event.deep_get("CommandLine", default=""),
            not "print.exe" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
