No more sharing

How to stop sharing a network folder on Windows 10

You can stop sharing any folder on Windows 10 using Computer Management and Command Prompt, and here's how to do it.

Stop sharing a folder on Windows 10

On Windows 10, sharing a folder in the network is a great way to share files with other users, instead of having to email files back and forth or using a USB flash drive.

However, the day may come when you need to stop sharing a folder for various reasons, and whatever the reason it may be, Windows 10 includes at least two ways to quickly stop sharing folders using Computer Management and Command Prompt.

In this guide, you’ll learn the steps to stop sharing a network folder on Windows 10.

How to stop sharing a network folder using Computer Management

Use these steps to stop sharing any folder on Windows 10:

  1. Open Start.

  2. Search for Computer Management and click the top result to open the experience.

  3. Expand the Shared Folders branch from the left pane.

  4. Click the Shares item.

  5. Right-click the folder that you no longer want to share and the Stop Sharing option.

    Stop sharing folder using Computer Management
    Stop sharing folder using Computer Management
  6. Click the Yes button.

Once you complete the steps, the folder will no longer be accessible by anyone in the network.

Although you can stop sharing a folder within the location of the folder, this guide uses the Computer Management experience, because it allows you to see and stop all the shares from one location.

How to stop sharing a network folder using Command Prompt

Use these steps to force stop a share folder on Windows 10:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result and select the Run as administrator option.

  3. Type the following command to see all the shared folders on your computer and press Enter:

  4. Type the following command to stop sharing a specific folder and press Enter:

    net share ShareOne2 /delete
    Stop sharing folder using Command Prompt
    Stop sharing folder using Command Prompt

    In the command, make sure to change ShareOne2 for the name of folder that you’re sharing. (This isn’t the “Resource” name.)

After you complete the steps, the folder that you specified in the command will no longer be available for network users.

While you have multiple options to stop sharing a folder on Windows 10, using the Command Prompt option can come in handy if you’re having problems trying to disable a share using File Explorer or Computer Management.