Hi, Is possible to Change Default Computer OU? Can I change the default OU of a computers? As example, from OU=Computers to OU=Nodes So that newly added computers are immediately located there. samba-tool computer add Node1 And Node1 live here - CN=Node1,OU=Nodes,DC=Domain,DC=my p.s. i know about samba-tool computer move ... samba-tool computer add Node1 --computerou ... -- Anton
On Thu, 2022-08-11 at 19:57 +0500, Anton Shevtsov via samba wrote:> Hi, > > Is possible to Change Default Computer OU? > Can I change the default OU of a computers? > As example, from OU=Computers to OU=Nodes > So that newly added computers are immediately located there. > > samba-tool computer add Node1 > > And Node1 live here - CN=Node1,OU=Nodes,DC=Domain,DC=my > > p.s. i know about > samba-tool computer move ... > samba-tool computer add Node1 --computerou ...Fairly easy for Linux computers, you just add 'createcomputer=OU' to the 'net ads join', see 'net help ads join' for more info. Not sure about Windows though, there is probably something similar, try an internet search. Rowland
On 8/11/22 10:57 AM, Anton Shevtsov via samba wrote:> Hi, > > Is possible to Change Default Computer OU? > Can I change the default OU of a computers? > As example, from OU=Computers to OU=Nodes > So that newly added computers are immediately located there. > > samba-tool computer add Node1 > > And Node1 live here - CN=Node1,OU=Nodes,DC=Domain,DC=my > > p.s. i know about > samba-tool computer move ... > samba-tool computer add Node1 --computerou ... > >From a Windows client you can use as a Domain Administrator: redircmp ?OU=Nodes,DC=Domain,DC=my?