Perform the following step to join a server to an AD domain using Netdom.
Type
netdom join %computername% /domain:vdom /reboot
Then press Enter to join the server to the vdom domain and reboot.
Perform the following step to remove a server to an AD domain using Netdom.
Type
netdom remove %computername% /domain:vdom /reboot
Then press Enter to remove the server from the vdom domain and reboot.
/userD:Administrator /passwordD:*
netdom join %computername% /domain:vdom /userD:Administrator /passwordD:* /reboot