Hi - and many thanks in advance for those who may have the answer (or can point me in the right direction)! I'm working on a script to Unjoin a Windows 7 x64 PC from its domain (using version 3.3.12.0) - there are two possible domains here, and I'd like the script to work for both, for ease of use. The _AD_Open command works beautifully, but I always get the same return code from _AD_UnjoinDomain: "Return code '0' from Active Directory"  This makes things kinda hard to track down. I'm not sure w