Started Troubleshooting based on previous conversation with
@Vertigo 7
System setup:
Fresh install of Windows 11 Preview EN-US 22000.iso
Group policy being tested is
Local Computer Policy->Windows Settings->Security Settings->Local Policies->Security Options-> Network security Lan Manager authetication level.
Setting to default Not Defined
Setting to NTLMv2 response only
Test 1
Offline account no GPO changes, not on domain.
Result
Able connect to share via UNC \\hostnameinDNS\ShareInQuestion
Test 2
Microsoft account no GPO changes, not on domain.
Result
Able connect to share via UNC \\hostnameinDNS\ShareInQuestion
Test 3
domain account no GPO changes beyond domain GPO for drive maps etc.
Result
Able connect to share via UNC \\hostnameinDNS\ShareInQuestion and my shared drives defined in group policy mapped just fine.
This is consistent with my experience on my laptop, everything used to work, then stopped after a little while.
Test 4
remove security group policy from laptop, and restart a few times after gpupdate to see if drive connection breaks.
Delete the regkey entry (DWORD) LmCompatibilityLevel under HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa and reboot.
Result
I had to restart a whole bunch of times as my system was failing gpupdates after removing the registry key due to an AD and SYSVOL version mismatch
That said after about 3 restarts and running gpupdate /force after each one everything is in working order, and I still have access to my drives.
I cannot explain why the mapping works, then at some point stopped, and setting the key to NTLMv2 rebooting a few times fixed it, and then undoing it all kept the share working...
I ended up not testing TrueNAS connected to domain with a domain account as the shares were working for a fresh install of windows on domain without domain join by TrueNAS.