加域(Netdom)
客户端运行:
netdom.exe join %computername% /domain:testw.com /userd:testw\adadmin /passwordd:boc.123 /reboot:5
::pause
::新建用户admin,密码为boc.123
net user admin boc.123 /add
::将用户admin添加到administrators组中
net localgroup administrators admin /add
net user Erpadmin ccc!331 /add /comment:"ERPUpdate" /expires:Never (指的是账户永不过期,并不是密码永不过期)
net localgroup administrators Erpadmin /add