Here are commands to enable and disable ad user accounts.
For your reference:
Then you can use gpp to deploy a task schedule for the computers ,following link for your reference:
This response contains a third-party link. We provide this link for easy reference. Microsoft cannot guarantee the validity of any information and content in this link.