To stop Windows 11 from asking for credentials for network file sharing, turn off password protected sharing on the PC that is sharing the files.
- Select Start > Settings > Network & internet.
- Select Sharing options or Advanced sharing settings.
- Under Private, turn on:
- Network discovery
- File and printer sharing
- Under All Networks, turn off Password protected sharing.
If sharing still does not work, also verify these on all PCs involved:
- They are connected to the same network.
- If using Wi-Fi, the network profile is set to Private.
- The following services are running and set to Automatic:
- Function Discovery Provider Host
- Function Discovery Resource Publication
- SSDP Discovery
- UPnP Device Host
To check the services:
- Press Windows key + R.
- Type services.msc and select OK.
- Open each service listed above, select Start if needed, and set Startup type to Automatic.
References: