def rule(event):
    if all(
        [
            "\\cmd.exe" in event.deep_get("ParentCommandLine", default=""),
            "/c" in event.deep_get("ParentCommandLine", default=""),
            "C:\\Windows\\Setup\\Scripts\\" in event.deep_get("ParentCommandLine", default=""),
            any(
                [
                    event.deep_get("ParentCommandLine", default="").endswith("SetupComplete.cmd"),
                    event.deep_get("ParentCommandLine", default="").endswith(
                        "PartnerSetupComplete.cmd"
                    ),
                ]
            ),
            not any(
                [
                    event.deep_get("Image", default="").startswith("C:\\Windows\\System32\\"),
                    event.deep_get("Image", default="").startswith("C:\\Windows\\SysWOW64\\"),
                    event.deep_get("Image", default="").startswith("C:\\Windows\\WinSxS\\"),
                    event.deep_get("Image", default="").startswith("C:\\Windows\\Setup\\"),
                ]
            ),
        ]
    ):
        return True
    return False
