Jump to content

Contribution :Offline Domain Join


Recommended Posts

Offline Domain Join


This is the latest version of my Offline Domain Join script for ConnectWise Automate. This script will join a computer to a domain with no network connection to the domain controller. Automate finds the "Domain naming master" server for the client, generates a file, transfers the file over to the target agent, then uses it to do a domain join. The script can also work when a computer is in the same network as the domain controller. We use it for all domain joining.

If a client has multiple domain naming masters the script will automatically fail. If the target computer is on a domain or a workgroup other than "WORKGROUP", it will automatically fail. If the target computer is Azure AD joined, it will automatically fail.

Once joined, domain credentials wont work until the target computer can communicate a domain controller. If someone has a trick for that, I'd love to hear it.


 

Link to post
Share on other sites
  • 2 weeks later...
Quote

Once joined, domain credentials wont work until the target computer can communicate a domain controller. If someone has a trick for that, I'd love to hear it.

If the client has a scriptable VPN connection method (e.g. Powershell) perhaps that connection process can be scripted in Labtech?
E.G. powershell to add VPN profile, powershell to connect the PC to the VPN using some highly restricted credentials?
Could definitely make it with partial user interaction, e.g. create a local user account, install the VPN profile, have the user sign into the local account with provided credentials, connect to the VPN, then they Switch User and sign in with their domain credentials, then reboot the PC.

Edited by LAko
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...