mangling method

controls the algorithm used for the generating the mangled names. Can take two different values, "hash" and "hash2". "hash" is the algorithm that was used in Samba for many years and was the default in Samba 2.2.x "hash2" is
now the default and is newer and considered a better algorithm (generates less collisions) in
the names. Many Win32 applications store the mangled names and so changing to algorithms must not be done lightly as these applications
may break unless reinstalled.

Example: hash

Supported on: At least Microsoft Windows 7 or Windows Server 2008 family

mangling method

Registry HiveHKEY_LOCAL_MACHINE
Registry PathSoftware\Policies\Samba\smb_conf\mangling method
Value Namemangling method
Value TypeREG_SZ
Default Valuehash2

samba.admx

Administrative Templates (Computers)