Wednesday, May 4, 2022

Use djoin to join a remote computer to a domain

Allows you to join a PC to a domain even when not on the domain.  Useful when prepping a PC for deployment before bringing it to customer site.

You'll need remote access (RDP, Anydesk, etc.) to customer site.

On a domain-attached computer at the customer's site, do:
djoin /provision /domain customerdomain.local /machine new-machine-name /savefile c:\temp\djoin-data.txt

Copy the  djoin-data.txt file to the local PC you're prepping and do: 

djoin /requestODJ /loadfile djoin-data.txt /windowspath %SystemRoot% /localos

That's it.  When you power up the PC at the customer site, the PC is already AD joined and users will be able to logon with their AD creds.

 

No comments:

Post a Comment

DiskGenius and Hasleo Backup

DiskGenius is an all-in-one utility for disk partition management, OS migration and file recovery. https://www.diskgenius.com/ Hasleo offers...