Stop sharing a resource

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

To stop sharing a resource

  • Using Shared Folders

  • Using Windows Explorer

  • Using a command line

Using Shared Folders

  1. Open Computer Management.

  2. In the console tree, click Shares.

    Where?

    • Computer Management/System Tools/Shared Folders/Shares
  3. In the details pane, right-click the folder that you want to stop sharing, and then click Stop Sharing.

    To stop sharing multiple instances of a folder or drive, press the CTRL key while you click the instances, right-click any instance of the folder or drive, and then click Stop Sharing.

Note

  • To open Computer Management, click Start, click Control Panel, double-click Administrative Tools, and then double-click Computer Management.

Using Windows Explorer

  1. Open Windows Explorer.

  2. Right-click the shared folder or drive that you want to stop sharing, and then click Sharing and Security.

  3. On the Sharing tab, do one of the following, and then click OK:

    • To stop sharing all instances of the shared resource, click Do not share this folder.

    • To stop sharing only one instance of a folder or drive that is shared multiple times, in Share name, click the folder or drive that you want to remove, and then click Remove Share.

Note

  • To open Windows Explorer, click Start, point to All programs, point to Accessories, and then click Windows Explorer.

Using a command line

  1. Open Command Prompt.

  2. Type:

    net sharesharename**/delete**

Value Description

net share

Creates, deletes, or displays shared resources.

sharename

The network name of the shared resource.

/delete

Stops sharing the resource.

Notes

  • To open a command prompt, click Start, point to All programs, point to Accessories, and then click Command prompt.

  • To view the complete syntax for this command, at the command prompt, type:

    net help share

Caution

  • If you stop sharing open resources, users might lose data. You may want to warn connected users before you close an open file or resource. For more information, see Related Topics.

  • In most cases, it is recommended that you not stop sharing the special shared resources that are created by the system, such as ADMIN$. These special shared resources are automatically recreated with their original settings when the computer is restarted.

  • The special shared resources NETLOGON and SYSVOL are required on domain controllers. Removing them causes a loss of functionality on all clients that the domain controller serves.

  • The IPC$ special shared resource is required for the Server service to operate, and it cannot be deleted.

Notes

  • You must be logged on as a member of the Administrators group, Server Operators group, or Power Users group to complete this procedure. If your computer is connected to a network, network policy settings might also prevent you from completing this procedure.

  • You can use Shared Folders to manage shared resources on both local and remote computers. For information about how to connect to another computer, see Related Topics. With Windows Explorer and the command line, you can manage shared resources on your local computer only.

  • File sharing options may be limited if simple file sharing is enabled. For more information about simple file sharing, see article Q304040, "Description of File Sharing and Permissions in Windows XP," in the Microsoft Knowledge Base.

Information about functional differences

  • Your server might function differently based on the version and edition of the operating system that is installed, your account permissions, and your menu settings. For more information, see Viewing Help on the Web.

See Also

Concepts

Shared Folders overview Microsoft Management Console Connect to another computer

Other Resources

Net share Send a console message to all connected computers Send a console message to a computer that you are managing