Secret: How to Create a Windows share

Source: Internet
Author: User

File Sharing is a common task for LAN users. Although it is easy to say, it is not easy to do. This article provides detailed solutions from the aspects of creating sharing methods, managing sharing and file sharing stealth methods.

I. How to Create a share:

Windows XP supports two file sharing methods: simple file sharing and professional file sharing ).

1. Simple file sharing

It is easy to create a file sharing by using simple file sharing. You only need to right-click the folder and select "share and security ..." Click "share" tab item (Figure 1), and then select "share this folder on the network, the shared file directory name is displayed in the "Share Name" column. If you are allowed to modify your shared file on the network, you can also select "allow network users to change my files.

Tip: by default, Windows XP enables simple file sharing.


You can also share the disk drive. Right-click the drive disk and select "share and security ..." Click the "share" tab item (figure 2). A security prompt is displayed, prompting you to pay attention to the risk of drive sharing. If you want to continue sharing, click the "share drive root" link. The following operations are the same as those for folder sharing.


The premise that shared folders and drives can be accessed is that the shared machine has enabled the Guest account. Generally, the Guest account is disabled by default in the XP system. If network users are allowed to access the computer, you must open a guest account. Expand the "Control Panel> Management Tools> Computer Management> local users and groups> Users" option, right-click the Guest account on the right, and select the "properties" menu item, remove the "Account Disabled" option (figure 4. If the access is not available, most of them are local security policies that limit user access. When a guest user or a local account is enabled, expand "Control Panel> Computer Management> Local Security Policy> User Rights Assignment" in sequence, in the "Deny access to this computer from the network" User List (figure 5), if you see guest or the corresponding account, you can directly delete it and all users on the network can access it, in this way, users do not need any password for access sharing, and the access is simpler and clearer.

Figure 4

Figure 5

2. Advanced file sharing

In the XP system, advanced file sharing is performed by setting different accounts and granting different permissions, that is, by setting the access control list (ACL) to plan the sharing of folders and hard disk partitions to limit user access.

1. Prohibit sharing of simple files

Open a folder, click "Tools> Folder Options" in the menu bar, select the "View" tab, and remove "use simple file sharing (recommended)" in advanced settings) "option (figure 6 ).

Figure 6

TIPS: only this step does not enable advanced file sharing. This only disables simple file sharing. You also need to start an account and Set permissions to restrict access.

2. Set an account

Opening a guest account alone does not allow multiple users to have different permissions. In advanced file sharing, Windows XP does not allow network users to access the system without a password account by default. Therefore, we must set different accounts for users with different permissions. Enter the user account on the control panel. There are computer accounts and guest accounts.

Generally, the access permissions of network users are the same. In this case, you only need to set one user. In a user account, to create a new user, you must consider network security. The account must have minimum permissions and services, and the type must be set to "Restricted Users ". Click "Control Panel> User Account", click the "Create a new account" link, enter the account name "JJ", and click "restricted" in figure 7, finally, click "create account.

There is also a simple way to add a new account: Expand "Control Panel> Management Tools> Computer Management> System Tools> local users and groups> Users", in the right window, right-click and select the "new user" menu item, as shown in figure 8.

3. Set the share permission for shared folders. Of course, you can also customize the share permission. You can set it as needed.

Figure 13

4. After creating a shared folder, the system will ask you if you want to create another shared folder. Select "yes" and return to the creation page in step 2 to select a new shared folder. Select "no" to exit the creation of the shared folder.

Use the shrpubw.exe command to set multiple shared folders.

Ii. Management and sharing

1. view the created shared folder

Expand "Control Panel> Management Tools> Computer Management> shared folder> share" (Figure 14) to see which shares are available on the local machine.

What if you want to view what is shared on the LAN and view the shared files on multiple computers through "Network neighbors? With the "landiscovery" software, the head is only 96 kb, the most important is the Free Software, the current version is 1.0, applicable to Win9x/NT/2000/XP, can be downloaded from www.fast-download.info/landiscovery.html.

Landiscovery software is easy to use. After the software is installed, double-click the "landiscovery" icon on the desktop to run the software. When the software is running, it starts to automatically scan the computers in the LAN and gradually display them on the left side of the software window. You only need to select the computer name of any of the computers (figure 15 ), on the right side of the software window, the shared file directory of the computer is displayed immediately. Click the shared file directory to open the Directory and use the shared file.

Figure 14

Figure 15

You can also enter the CMD command in the "Start> Run" window, and enter the "net share" command in the displayed running dialog box (Figure 16) to view the shared resources.

Figure 16

3. To delete shared files, right-click the folder and select share and security ..." Click the "share" tab item (Figure 21) in the menu, and remove the check box before "share this folder on the network, after you click "OK", the file directory cannot be shared on the LAN.

Figure 21

You can also use NotePad to create a batchcompute file with the suffix bat. In this file, enter the command in the following format:

NET Share ADMIN $/del

NET Share IPC $/del

NET Share C $/del

NET Share d $/del

If there are other drive letters or folders shared, you can add them in sequence.

Add the created batch file to the system's "task plan" and select "when the computer starts" in the task execution option ". In this way, the system will automatically run the batch processing file after each boot, closing the specified default shared service. If you do not want to use "schedule task", you can also drag the shortcut of the batch file to the "Start" menu to achieve the same purpose. Effect 22.

Figure 22

Iii. Stealth mode for file sharing

What actually threatens your own information security in the LAN is not a hidden hacker, but a "person" around you ". Because files shared by network peers are widely used in the LAN, in order to better protect yourself, you need to hide large methods to prevent internal malicious attacks when sharing files.

1. Hide Shared Folders

Do not think that adding a password to the shared folder can ensure security. There are too many windows system vulnerabilities. Do you know which patch is not completed in time? It's too dangerous. It would be much safer if someone else could not see your shared files from their network peers.

Implementation Method: Right-click the shared folder to be hidden, click the "share" tab item, enter the name of the shared folder in the share name, and add the dollar sign "$" to the end ", for example, "Shared File $", and then enter the password. If someone else wants to access your shared files, they will not be able to see them in the network neighbors. You must enter "\ computer name (or IP address) \ shared file $" in the address bar ", enter the password and press enter to access your folder.

2. Sharing without a shared sign

If one day he finds that there are still shared files on your computer, that is, shared folders have a special sign to be shared, and there is a little hand under it, which is obviously different from general folders! How can I remove the small hand icon of the shared folder so that the shared folder is the same as the normal folder, and outsiders no longer see which directories are shared and which directories are not shared, so that security is more guaranteed. The following describes how to share an edisk without a shared Tag: first, use the "Hide shared folder" method to hide and share the edisk, and then open the Registry Editor, enable "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion"

Computer Management

\ Network \ LANMAN \ e $ ", change the key value of DWORD" Flags "from" 192 "to" 302 ", and restart Windows to make it take effect. If you need to access the disk, you only need to enter "\ computer name \ e $" in the address bar to view the shared content of the disk. At the same time, you will find that the E disk cannot be shared in the local resource browser, isn't it amazing? No one except yourself knows this secret.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.