def rule(event):
    if all(
        [
            any(
                [
                    ":\\Temp\\" in event.deep_get("ParentImage", default=""),
                    "\\AppData\\Local\\" in event.deep_get("ParentImage", default=""),
                    "\\AppData\\Roaming\\" in event.deep_get("ParentImage", default=""),
                    "\\Temporary Internet" in event.deep_get("ParentImage", default=""),
                    "\\Users\\Public\\" in event.deep_get("ParentImage", default=""),
                    "\\Windows\\Temp\\" in event.deep_get("ParentImage", default=""),
                ]
            ),
            event.deep_get("Image", default="").endswith("\\schtasks.exe"),
            "/Create " in event.deep_get("CommandLine", default=""),
            not any(
                [
                    "update_task.xml" in event.deep_get("CommandLine", default=""),
                    "unattended.ini" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
