Windows domain 670x335

Join/Quit Windows Domain

Add or remove any endpoints to a domain


This set of agent procedures allows you to add or remove any endpoints to your Windows Domain.
There are two versions of each script. One prompting you for the credentials and domain name prior to executing so you can fill as needed.
The second version uses static variables you will need to modify with the correct credentials for better automation.

  • Name: Douglas Sanchez
  • Company: Kaseya
  • Website:
  • Contact Developer
  • Summary
  • Join/Quit Windows Domain
  • Version:
  • Released on October 16th, 2019
  • Discussion
    Gravatar for Dmitrij Kondrasov
    Dmitrij Kondrasov 10 months ago

    Is it possible to join pc to not default OU?

    Gravatar for Gareth Thorley
    Gareth Thorley 10 months ago

    If you want the PC to join a specific OU, you could add the following parameter, to line 7 of the Agent Procedure

    -OUPATH "OU=Tills,OU=Store Devices,OU=Domain Operations,DC=YourDomain,DC=local"

    If you want to specify your own OU, you will need to create additional GetVariable lines, and then reference the variable in Line 7.

    Hope this helps!