Windows keeps asking for SMB credentials

Hi,

my Windows 11 PC keeps asking for credentials for my TrueNAS server after every reboot.
It didn’t always do this but it started a few weeks ago without any reason that I could identify.

I tried it with two different users. One has the same username as my local Windows user, the other has a different username.

I checked the Windows credentials manager. The credentials are actually saved there. The username is also remembered in Windows Explorer.

However I can see in the TrueNAS audit log, that Windows tries to login with my Microsoft account username (my Microsoft mail address).

Any ideas why and how to solve this?
I know it’s a Windows problem not a TrueNAS one but I hope, someone might have faced this before.

Have you tried rebooting Windows?

Again I seem to co-incidentally have faced the same issue. It is 100% a Windows problem & I suspect windows defender is trying to scan the SMB share that it has no access to. I solved this by creating permissions that mirror the windows user/pass for the account & giving them 0 access.

Immediately resolved the issue. Windows seems happy enough to scan absolutely nothing once it has access to… absolutely nothing, but can login successfully.

Naw it is Windows trying to use the current User login 10,000 times a minute to access SMB shares after it discovers the existence of your SMB. Which is stupid and annoying if you don’t manually create a profile on the NAS that mirrors those use credentials. Windows doesn’t seem to care that you already have different & valid credentials to access the share that you’ve saved on that Windows device - it wants to blindly repeat your Windows User credentials ad nauseam.

sorry my post was not precise. It keeps asking after every reboot .

Very interesting. The thing is, that windows tries to login with a mail address as a username. I cannot create such a user under TrueNAS.

I will try to just exclude the NAS from Windows Defender.

Consider forcing Windows into making an offline user account so you don’t have to be constantly signed in to their live service garbage? I didn’t realize (but did replicate) that you can’t make an email address as a username on TrueNAS, which does indeed make my workaround fail for you.

I created my account as an offline account but signed in afterwards as i needed some of that garbage xd

sadly this did not help.