Hi all, When I change the name of a Windows 10 client with System properties -> computer name -> Modify , either by just changing the name or remove and rejoin to the domain , in the ADUC console the name of the computer is unchanged . In the General tab of the computer Properties , the "Computer Name (pre win2000)" and the "DNS name" attributes have been correctly changed, but not the name of the computer object. Moreover , there is no "rename" command in the menu to rename the object. So what is the way to properly change the name of a client computer ? Thanks in advance
On 18/06/2020 08:51, henri transfert via samba wrote:> So what is the way to properly change the name of a client computer ?Louis and myself tried to write a script to do just this, but failed because he was changing the name via Windows (as you are) and I was using ldbrename. After some confusion, it became obvious that Windows changed? everything except the dn,cn,name and distinguishedName, ldbrename changed nothing but the dn,cn,name and distinguishedName. Neither method changed everything. So, in my opinion (and you are not going to like this), the best way to change a computer name is to walk to the computer, leave the domain, change computer name, reboot and then rejoin the domain :-( Rowland
Le jeu. 18 juin 2020 ? 12:14, Rowland penny via samba <samba at lists.samba.org> a ?crit :> On 18/06/2020 08:51, henri transfert via samba wrote: > > So what is the way to properly change the name of a client computer ? > > Louis and myself tried to write a script to do just this, but failed > because he was changing the name via Windows (as you are) and I was > using ldbrename. After some confusion, it became obvious that Windows > changed everything except the dn,cn,name and distinguishedName, > ldbrename changed nothing but the dn,cn,name and distinguishedName. > Neither method changed everything. > > So, in my opinion (and you are not going to like this), the best way to > change a computer name is to walk to the computer, leave the domain, > change computer name, reboot and then rejoin the domain :-( > > Rowland >Thanks Rowland. I have tried but I needed to delete the computer object in ADUC between leave and rejoin to make the new name effective in ADUC. Maybe another solution is to mix both : 1) change the name via windows 2) rename with ldbrename This way all ldap attributes are changed. The concerned database is private/sam.ldb right ? Not very satisfying anyway ...> > > -- > To unsubscribe from this list go to the following URL and read the > instructions: lists.samba.org/mailman/options/samba >