在本文中,我将为两台计算机之间的文件共享或网络编写(file sharing)故障排除指南。(troubleshooting guide)不幸的是,Windows 可能很挑剔,即使您可能认为一切都应该正常工作,但访问另一台计算机上的共享可能会失败。
我之前写过一篇关于如何将两台运行Windows的计算机联网的文章,我还写过一篇关于如何无线连接两台计算机并共享数据的文章!
因此,如果您已阅读这两篇文章中的任何一篇,但仍无法访问同一网络上另一台计算机上的共享,请尝试以下故障排除提示!
解决网络共享问题
1.工作组(Workgroup)——确保您要访问的每台计算机都在同一个工作组中。每台计算机上的工作组名称应完全相同。此外,请确保对名称使用相同的大小写(全部大写或全部小写)。
在Windows 7及更高版本中,单击开始(Start),输入工作组(workgroup),然后选择更改工作组名称(Change workgroup name)。单击更改(Change)按钮以更改工作组名称(workgroup name)。
2.家庭组(HomeGroup)——Windows 7(Windows 7)引入了一个称为家庭组的新功能,(HomeGroup)它可以自动设置所有内容,以便您可以在Windows 7、Windows 8 和Windows 10机器之间共享文件。
查看我的帖子,了解如何在 Windows 中配置家庭组以及如何解决家庭组的任何问题。
3.文件和打印机共享(File and Printer Sharing)- 确保网络适配器的(network adapter)文件和打印机共享(file and printer sharing)已打开。您可以通过转到控制面板(Control Panel)、网络连接(Network Connections)、右键单击网络连接(network connection)、选择属性(Properties)并确保选中Microsoft 网络(File and Printer Sharing for Microsoft Networks)的文件和打印机共享来启用此功能。
在Windows 7及更高版本中,您必须转到网络和共享中心( Network and Sharing Center),然后单击高级共享设置(Advanced Sharing Settings)并将其打开。
4.正确的子网和IP地址(Correct Subnet and IP addresses)——如果你的所有电脑都连接到同一个路由器,你真的不应该有这个问题,但仍然值得一提。
确保所有计算机的子网掩码(Subnet Mask)和默认网关( Default Gateway)都相同。如果这些不同,那么您将在通过网络连接计算机时遇到问题。
您可以通过转到Start、Run、键入CMD然后在每台计算机上的命令提示符处键入(command prompt)IPCONFIG /ALL
5.检查防火墙——(Check Firewalls – )我的建议是首先禁用所有计算机上的Windows 防火墙(Windows Firewall),然后尝试访问共享文件夹。此外,请务必禁用任何第三方防火墙程序,例如Norton 或 Comodo(Norton or Comodo)。
如果您发现共享在防火墙关闭的情况下仍然有效,请确保将文件和打印机共享添加到(File and Printer Sharing)Windows 防火墙(Windows Firewall)和第三方防火墙程序的例外列表中。
6.共享权限(Shared Permissions)- 如果您收到“您可能没有使用此网络资源的权限...访问被拒绝”(You might not have permission to use this network resource…Access is Denied) 消息,您的问题也可能是共享目录的权限设置不正确。
根据您运行的是XP Home 还是 XP Pro(XP Home or XP Pro),您必须正确配置共享。对于XP Home,您只能使用简单文件共享(Simple File Sharing)来共享文件。这很容易,因为他们有一个向导来引导您完成共享过程(sharing process)。
对于 XP Pro,您需要禁用简单文件共享(disable Simple File Sharing)并设置NTFS权限和共享权限以允许所有人访问(everyone access)。有关更多详细信息,请查看我关于设置文件/文件夹权限或如何在计算机之间共享文件的帖子。
7.Use TCP/IP Protocol——你可能也不必担心这个,但只是为了涵盖所有基础,你需要确保网络上的计算机都使用Internet TCP/IP protocol进行通信和不是IPX/SPX or NetBEUI。
您可以转到开始(Start)、控制面板(Control Panel)、网络连接(Network Connections),右键单击网络连接(network connection),选择属性,然后查看(Properties)列表框中(list box)列出的协议。
8.用户名和密码(Username and Passwords)——如果您已正确完成上述所有操作但仍然无法连接,那么您也可以尝试确保所有计算机上的用户名和密码完全相同。
最好为所有帐户设置密码,并在每台计算机上使用相同的用户名和密码(username and password)创建一个新帐户。有时重要的是创建一个新帐户,而不是仅仅更改现有帐户的名称或密码。(name or password)确保(Make)帐户是管理员(Administrators)。
此外,重要的是要知道,如果主机计算机(host computer)没有用户帐户(user account)的密码,您可能无法连接到网络共享(network share)。您可以关闭受密码保护的共享,这将消除上述要求,但安全性要低得多。
9.计算机名称(Computer Names)——确保所有计算机的NetBIOS 名称(NetBIOS name)是唯一的。NetBIOS 名称(NetBIOS name)只有 8 个字符,因此如果您将一台计算机命名为 JohnnyBoy1 和 JohnnyBoy2(computer JohnnyBoy1 and JohnnyBoy2),它们将具有相同的NetBIOS 名称(NetBIOS name)。
确保(Make sure)计算机名称(computer name)的前八个字符是唯一的,否则会出现问题。请注意,这只是非常旧版本的Windows的问题。对于Windows 7(Windows 7)及更高版本,您无需执行此操作。
10.本地安全策略 -(Local Security Policy – )您可能无法通过网络访问另一台计算机的另一个原因是本地安全策略(security policy)。
您可以进入控制面板(Control Panel)、管理工具(Administrative Tools)、本地安全策略(Local Security Policy)、本地策略(Local Policies)、安全(Security) 选项(Options)。现在找到以下策略:
Network access: Do not allow anonymous enumeration of SAM accounts and shares
确保将该值设置为Disabled。此外,请确保仅禁用“ SAM 帐户和共享(SAM accounts and shares)”的设置,而不是仅禁用“SAM 帐户”的设置。
11.卸载防病毒和 Internet 安全(Uninstall anti-virus and Internet Security)–最后(Finally),确保关闭或卸载所有防病毒程序以测试连接。如果您有任何Internet Security 程序(Internet Security program),例如Norton Internet Security 或 Kaspersky Internet Security(Norton Internet Security or Kaspersky Internet Security),请禁用它们!
就是这样!这些是我能想到的用于解决Windows中的文件共享问题的所有技巧!如果您仍然无法访问网络共享(network share),请发布您到目前为止尝试过的内容,我会尽力提供帮助。享受!
Fix “\\computer is not accessible. You might not have permission to use this network resource”
In this article, I’m going tо write a troublеshоoting guіde for fіle sharing or networking between two computers. Unfortunаtely, Windows can be finiсky and eνen though уou may think everything should work, accessing a share on another computer may fail.
I’ve previously written an article on how to network two computers together that are both running Windows and I’ve also written about how you can connect two computers wirelessly and share data!
So if you’ve read either of those two articles, but still cannot access a share on another computer on the same network, try out the following troubleshooting tips!
Troubleshoot Network Share Issues
1. Workgroup – Make sure that each computer that you want to access is in the same workgroup. The name of the workgroup should be exactly the same on every computer. Also, be sure to use the same case for the names (all upper or all lower).
In Windows 7 and higher, click on Start, type in workgroup and then select Change workgroup name. Click on the Change button to change the workgroup name.
2. HomeGroup – Windows 7 introduced a new feature called a HomeGroup that automatically sets everything up so that you can share files between Windows 7, Windows 8 and Windows 10 machines.
Check out my posts on how to configure a HomeGroup in Windows and how to troubleshoot any problems with HomeGroups.
3. File and Printer Sharing – Make sure that file and printer sharing is turned on for the network adapter. You can enable this by going to Control Panel, Network Connections, right-clicking on the network connection, choosing Properties and making sure File and Printer Sharing for Microsoft Networks is checked.
In Windows 7 and higher, you have to go to Network and Sharing Center, then click on Advanced Sharing Settings and turn it on there.
4. Correct Subnet and IP addresses – You really shouldn’t have this problem if all your computers are connected to the same router, but it’s still worth mentioning.
Make sure that the Subnet Mask and Default Gateway are the same for all computers. If these are not the same, then you will have issues connecting the computers over the network.
You can view these details by going to Start, Run, typing CMD and then typing IPCONFIG /ALL at the command prompt on each computer.
5. Check Firewalls – My suggestion here would be to first disable the Windows Firewall on all computers and then try to access the shared folders. Also, be sure to disable any third-party firewall programs like Norton or Comodo.
If you find that the sharing works with the firewall off, make sure to add File and Printer Sharing to the exceptions list in your Windows Firewall and third-party firewall programs.
6. Shared Permissions – If you are getting the You might not have permission to use this network resource…Access is Denied message, your problem could also be that the permissions for the shared directory are not properly set.
Depending on whether you are running XP Home or XP Pro, you will have to configure the sharing properly. For XP Home, you can only share files using Simple File Sharing. It’s pretty easy because they have a wizard to walk you through the sharing process.
For XP Pro, you need to disable Simple File Sharing and set the NTFS permissions and share permissions to allow everyone access. For more details, check out my post on setting file/folder permissions or how to share files between computers.
7. Use TCP/IP Protocol – You probably don’t have to worry about this either, but just to cover all bases, you need to make sure that the computers on the network are all using the Internet TCP/IP protocol to communicate and not IPX/SPX or NetBEUI.
You can go to Start, Control Panel, Network Connections, right-click on the network connection, choose Properties and see which protocol is listed in the list box.
8. Username and Passwords – If you’ve done everything above correctly and still can’t connect, then you can also try making sure that the usernames and passwords on all computers are exactly the same.
It’s best to have passwords on all accounts and to create a new account on each computer with the same username and password. Sometimes it’s important to create a new account instead of just changing the name or password on an existing account. Make sure the accounts are Administrators.
Also, it’s important to know that you may not be able to connect to a network share if the host computer does not have a password for the user account. You can turn off password protected sharing, which will remove the above-mentioned requirement, but it’s far less secure.
9. Computer Names – Make sure that the NetBIOS names for all computers are unique. NetBIOS names are only 8 characters, so if you named one computer JohnnyBoy1 and JohnnyBoy2, they will have the same NetBIOS name.
Make sure that the first eight characters of a computer name are unique, otherwise you will have problems. Note that this is only an issue with very old versions of Windows. You don’t need to do this for Windows 7 and higher.
10. Local Security Policy – Another reason you may not be able to access another computer across the network is because of a local security policy.
You can go to Control Panel, Administrative Tools, Local Security Policy, Local Policies, Security Options. Now find the following policy:
Network access: Do not allow anonymous enumeration of SAM accounts and shares
Make sure that the value is set to Disabled. Also, make sure to disable only the setting that says “SAM accounts and shares” not the one that says “SAM accounts” only.
11. Uninstall anti-virus and Internet Security – Finally, make sure that all your anti-virus programs are either turned off or uninstalled to test out the connection. If you have any Internet Security program such as Norton Internet Security or Kaspersky Internet Security, disable them!
That’s about it! Those are all the tips I can think of for troubleshooting file sharing issues in Windows! If you still can’t access a network share, post what you’ve tried up till now and I’ll try to help. Enjoy!