def rule(event):
    if all(
        [
            ">" in event.deep_get("CommandLine", default=""),
            any(
                [
                    "\\\\127.0.0.1\\admin$\\" in event.deep_get("CommandLine", default=""),
                    "\\\\localhost\\admin$\\" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
