def rule(event):
    if all(
        [
            "\\Services\\LanmanServer\\Parameters\\" in event.deep_get("TargetObject", default=""),
            any(
                [
                    event.deep_get("TargetObject", default="").endswith("\\AutoShareWks"),
                    event.deep_get("TargetObject", default="").endswith("\\AutoShareServer"),
                ]
            ),
            event.deep_get("Details", default="") == "DWORD (0x00000000)",
        ]
    ):
        return True
    return False
