This worked for me after installing 24H2 on all our non-compliant PCs.
Go to Start, type Powershell, Right click on Windows Powershell, and Run as Administrator. (That last bit is very important!)
Copy and paste these commands one at a time, and Enter.
Set-SmbClientConfiguration...