def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 4720,
            event.deep_get("TargetUserName", default="").endswith("$"),
            not event.deep_get("TargetUserName", default="") == "HomeGroupUser$",
        ]
    ):
        return True
    return False
