File Sharing Win 11 not working

CM Newell 5 Reputation points
2025-11-28T17:28:10.15+00:00

When I try to access shared files over local network, I get asked for credentials, and after they are enteed I get a message that "The username or password is incorrect."

It is not incorrect.

How do I fix this problem?

Windows for home | Windows 11 | Files, folders, and storage

6 answers

Sort by: Most helpful
  1. MotoX80 37,781 Reputation points
    2025-12-02T22:05:33.9866667+00:00

    Just to verify, you are logging on to both PCs with the same Microsoft account, correct?

    Open the credential manager and look to see if the "other" pc name is listed here. Remove any saved credentials.

    User's image

    Then open a command prompt and run "net use". If you see the "other" pc listed here, then delete the mapped drive like I did here.

    User's image

    I recently saw a post from a user who figured out that his problem was that he had only ever used a PIN to log on with his MS account.

    I log on to my laptop with my MS account via a PIN but I think that I always logged in with a password before switching to a PIN. I can't verify that other users experience.

    I have noticed that I can verify that my PC knows what my password is. I would suggest that you verify that both PCs recognize your password.

    In the above image you will note that the directory is C:\Users\madne. The "madne" is the first 5 letters of my email address. If you run whoami.exe it will tell you your id in the format ComputerName\YourFirst5Letters. Run whoami on both PCs and see if YourFirst5Letters match.

    Then run this command and enter your password.

    runas /user:YourFirst5Letters cmd.exe
    

    Here I used Terminal and it launched a new tab with "running as" in the title.

    User's image

    Do that on both PCs to verify that they both recognize your same password.

    Then use net view to see if you can list the network shares.

    net view \\TheNameOfTheOtherPC
    

    What does "net view" give you?

    Was this answer helpful?

    1 person found this answer helpful.

  2. CM Newell 5 Reputation points
    2025-12-02T20:08:15.7733333+00:00

    "you may try to clear SMB credentials then re-add manually"

    How do I know which credentials are SMB related?

    I don't want to clear anything that's going to make the problem worse.


    Laptop--fujitsu stylistic, Win 11 25H2, reinstalled 11/23 at the direction of microsoft tech support person. Win 11 pro

    Desktop--Dell XPS 8930, new hard drive installed this spring and updated fro 10--> 11 by local preofessional. Win 11 24H2. Win 11 home

    Microsoft account

    permissions shared as per support recommendations

    (file and print sharing over network enabled)



    Was this answer helpful?


  3. Lucus-V 9,400 Reputation points Microsoft External Staff Moderator
    2025-12-02T02:08:35.2066667+00:00

    Hi CM Newell,
    Welcome to Microsoft Q&A forum. I'm happy to help.

    Could you describe more details about your system? Such as your Windows version on 2 machines (23H2, 24H2, 25H2), you're using Local account or Microsoft account, and sharing permission that you've set. If there're anything hard for describe, please kindly provide the screenshots.

    In the meantime, you may try to clear SMB credentials then re-add manually by opening Credential Manager > Windows Credentials > remove existed credentials related to SMB > Add a Windows credential > insert Address, User name and Password.

    If there's any update, please feel free to let me know.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

  4. CM Newell 5 Reputation points
    2025-11-28T19:16:21.91+00:00

    I have tried that and had no luck getting access.

    Was this answer helpful?

    0 comments No comments

  5. Noel Macadangdang 16,860 Reputation points Independent Advisor
    2025-11-28T18:05:14.4366667+00:00

    Hi CM,

    Thank you for sharing your question. I understand you are having issues with windows 11.

    Here's how to troubleshoot when Windows 11 asks for login info to get into shared files, but then says your username or password is wrong even if it's right:

    By default, Windows 11 wants a password to access shared stuff. This means you need a real username and password from the computer that's sharing the folder.

    If the computer sharing the folder uses a Microsoft account, you gotta use that account's email and password, not just a local username.

    If your computer is part of a workgroup, this error can pop up if your login info is wrong or if sharing settings are off.

    How to fix it

    Turn on password-protected sharing and double-check your login details

    On the PC sharing the folder, go to:

    Settings > Network & Internet > Advanced network settings > Advanced sharing settings.

    Find Password-protected sharing and flip it on.

    Make sure you're typing in the exact username and password for an account on that computer (either the Microsoft account email + password, or a local account’s details).

    Make a local account just for sharing (if you want)

    If you don't wanna use your Microsoft account, create a separate local account on the computer that’s doing the sharing:

    Settings > Accounts > Other users > Add account.

    Give it a password, and use that new info when you log in from other devices.

    I hope this answer is helpful, if you have any questions, feel free to reply.

    Best Regards,

    Noel

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.