I came across this older topic because I wanted to shorten up the access to the shares and printers during the UCS and UCS@School trainings (which is the only use case for Windows-Machines for me).
Of course the problem for Windows 11 is the same as with Windows 10.
Installing wsdd is now possible directly. The repository shows 2 variants, the Python-based wsdd and wsdd2. Both are not in the list of maintained packages Documentation. I used wsdd2.
Looking at netstat I noticed a difference regarding the ports to open. As I did not know where TCP and UDP is used I simply opened both because this was what netstat showed.
univention-install wsdd2
ucr set security/packetfilter/tcp/5355/all=ACCEPT
ucr set security/packetfilter/udp/5355/all=ACCEPT
ucr set security/packetfilter/tcp/3702/all=ACCEPT
ucr set security/packetfilter/udp/3702/all=ACCEPT
systemctl restart univention-firewall.service
After that the server show up in the Network Environment and I was able to access the server without the need to type \\server in explorer.
hth
Dirk