Blog article on lazywinadmin.com
The New-DjoinFile function create a Blob file from the String Generated by Djoin. This blob file can then be passed to djoin to join the machine to the Active Directory domain.
# Load the function (Dot Sourcing)
. C:\MyScripts\New-DjoinFile.ps1
# Blob generated
$Blob = "<Blob generated previously on the domain machine>"
# Recreate djoin file
New-DjoinFile -Blob $blob -DestinationFile $home\desktop\blob.txt -Verbose