• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Create Shared Folder\windows\system32\shrpubw.exe

Share a folder with other users on the network, either locally or remotely.

To Open

Command Prompt shrpubw


shrpubw [/s computer_name]


The easiest way to begin sharing a folder or drive is to right-click on its icon in Explorer, select Sharing and Security, and turn on the "Share this folder on the network" option. However, this procedure only allows you to share local folders. If you need to access an unshared folder on a computer on the other side of the building, for example, you would have to walk over to that computer and enable sharing for the folder while sitting in front of it.

The Create Shared Folder utility not only provides an alternative interface for sharing folders, it also lets you enable sharing of a folder on the remote computer (see Figure 4-18). Create Shared Folder can almost be thought of as a "back door," enabling access to computer where no such access has been explicitly defined. Naturally, if you don't have administrative rights on the target computer, you won't be able to do anything. (See Notes, below.)

Figure 4-18. The Create Shared Folder dialog provides an alternate way to share any folder on your hard disk with other computers on your network

If you run Create Shared Folder with no arguments, it will only let you share resources on the local computer. To share resources on a remote computer, use the /s parameter, like this:

shrpubw /s lenny

When Create Shared Folder starts, the computer named Lenny will appear in the Computer field, and you'll be able to enable the sharing of any available resources on that computer.

Regardless of the computer being manipulated with Create Shared Folder, the interface is extremely simple. Below the Computer field (which can't be changed once the program has started), there are three other fields:

Folder to share

Enter the full path of the folder you wish to begin sharing (e.g., c:\my stuff\) or click Browse to navigate the folder tree.

Share name

Enter the name under which the folder will be known on the network (e.g., my stuff).

Share description

The description is optional, but a quick note, describing the purpose of the folder, can be very helpful, especially in large organizations. For example: Lenny's Stuff.

When you're done, click Next to view the second and final page. Here, you can specify the security options for the share, such as which users will be able to read and/or modify the data in the shared folder. Click Finish when you're done, and the new shared folder will appear in the My Network Places folder.


  • Based on the type of network you're using, administrative rights may be a little confusing. For example, on a peer-to-peer network, there is no central database of user accounts and passwords. In this case, you would need an identical username and password on each machine, and that user account must have administrative privileges to be recognized as an administrator.

  • Obviously, this utility redefines security on a network. Just because you haven't explicitly shared a folder doesn't mean someone else can't get access to it. A word to the wise: if your computer resides in a networking environment, which can include ordinary Internet access, you need to be very careful about how you configure user accounts on your system. A further security hazard is the fact that all user accounts in Windows XP Home Edition have administrative privileges.

See Also

Chapter 7, User Accounts

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint