netdom join more ou

背景:主机加域之后,自动加入到指定的ou里,ou是多层级。

 

报错:

The system cannot find the file specified.
The command failed to complete successfully.

 

看官方说明:https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc788049(v=ws.11)

 

 或者我理解有问题,正确写法是:/OU:"OU=bb,OU=aa,DC=xxx,DC=xxx" ,ou的写的顺序与组织顺序是反序才能成功。

 

posted @ 2019-11-06 18:26  tengfei520  阅读(178)  评论(0编辑  收藏  举报