Share via

SMB problems/ enable

J M 0 Reputation points
2025-07-24T05:32:18.13+00:00

PS C:\Users\ps3re> Set-SmbServerConfiguration -EnableSMB2Protocol $true

Confirm

Are you sure you want to perform this action?

Performing operation 'Modify' on Target 'SMB Server Configuration'.

[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): a

Set-SmbServerConfiguration : Access is denied.

At line:1 char:1

  • Set-SmbServerConfiguration -EnableSMB2Protocol $true
  • 
        + CategoryInfo          : PermissionDenied: (MSFT_SmbServerConfiguration:ROOT/Microsoft/...erConfiguration) [Set-S
    
       mbServerConfiguration], CimException
    
        + FullyQualifiedErrorId : Windows System Error 5,Set-SmbServerConfiguration
    
Windows for home | Windows 11 | Files, folders, and storage
0 comments No comments

2 answers

Sort by: Most helpful
  1. Haien-L 7,670 Reputation points Microsoft External Staff Moderator
    2025-08-06T10:19:42.88+00:00

    Dear J M

    Welcome to Microsoft Q&A. I'm Haien from Microsoft Q&A.

    May I ask if you have tried my suggestions for your case? I hope you can keep me updated on your issue in the future.

    Your satisfaction is Microsoft's priority.


    • If you've already tried these steps and are still encountering issues, please reply to this thread with the requested details so we can investigate further and ensure your subscription is activated properly. Also, please keep me updated with anything new that you were try to each option.
    • 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.

     

    We appreciate your patience and look forward to resolving this quickly for you.

    Warm regards,

    Haien - MSFT | Microsoft Q&A Support Specialist

    Was this answer helpful?

    0 comments No comments

  2. Haien-L 7,670 Reputation points Microsoft External Staff Moderator
    2025-07-24T10:36:52.7633333+00:00

    Dear J M

    Thank you for reaching out. I'm Haien from Q&A Forum. Welcome to Microsoft Q&A Forum.  

    Thanks for reaching out with your SMB problem. It looks like you're trying to enable the SMB2 Protocol using PowerShell, but you're running into an "Access is denied" error. That's a very common issue when trying to modify system configurations, and it usually points to insufficient administrative privileges.  

     

    To help you further, please allow me to ask a few questions to provide to you more suitable solutions: 

    • When you opened PowerShell, did you explicitly "Run as administrator"? 
    • Is this a personal PC or a company-managed device? If you are using your company device, did you ask for your IT permission to access into? 
    • Have you modified SMB settings before? Are you trying to enable SMB2 for a specific purpose? 
    • Have you recently updated Windows or installed any new software that might have changed permissions? 

     

    The "Access is denied" error (Windows System Error 5) when running Set-SmbServerConfiguration is almost always a permissions issue. The command you're trying to execute modifies a core Windows networking component, and Windows security protocols prevent regular user accounts from making such changes. enabling SMB2 as a server (e.g., to share files from your Home PC) is more restricted. The Set-SmbServerConfiguration command you tried requires administrative privileges and full SMB server capabilities, which are limited in Home compared to Pro/Enterprise. Home supports basic file sharing, but advanced server configurations (like manually enabling/disabling SMB2 via PowerShell) might not work as expected due to these restrictions. I can help you try some of these first, but for your convenience, I suggest you check your work PC for administrator rights or contact your company IT if you are using your company computer. 

     

    Here are some effective ways that you can try to fix the problem: 

    Solution 1: Open PowerShell as an Administrator 

    • Close your current PowerShell window > Open PowerShell with Administrator Rights > Start button > Type "PowerShell" in the search bar > right-click on "Windows PowerShell" (or "PowerShell") > "Run as administrator"
    • Run the command again > press Enter 
      • Set-SmbServerConfiguration -EnableSMB2Protocol $true 
    • Check if SMB2 is enabled by running 
      • Get-SmbServerConfiguration | Select EnableSMB2Protocol. 

    For additional information, please visit this article to know more:  Starting Windows PowerShell - PowerShell | Microsoft Learn 

    Solution 2: Check SMB Feature Availability 

    • Open Control Panel > Programs > Turn Windows features on or off > Look for "SMB 1.0/CIFS File Sharing Support" or related SMB options. 
      • If SMB features are missing or grayed out, Windows 10 Home might not allow full SMB server configuration—consider upgrading to Pro. 
    • Test the command again after any changes. 

    Solution 3: Upgrade to Windows 10 Pro (Last Resort) 

    • Go to Settings > Update & Security > Activation > Go to the Store > Purchase Windows 10 Pro (check Microsoft Store) and upgrade. 
    • After upgrading, rerun the PowerShell command. 

    Note/Warning: Back up all data before upgrading, as activation errors can occur with unofficial methods. Please visit this article to know how to back up your data via Tab Windows 10: Back up and restore with Windows Backup

    For additional information about this topic, please visit these articles to know more about your reported problem:


    If you've already tried these steps and are still encountering issues, please reply to this thread with the requested details so we can investigate further and ensure your subscription is activated properly. Also, please keep me updated with anything new that you were try to each option. 

    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.  

    We appreciate your patience and look forward to resolving this quickly for you.   

    Warm regards,   

    Haien - MSFT | Microsoft Q&A Support Specialist  

    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.