![空会话共享在 Windows 7 上不起作用](https://linux22.com/image/1449564/%E7%A9%BA%E4%BC%9A%E8%AF%9D%E5%85%B1%E4%BA%AB%E5%9C%A8%20Windows%207%20%E4%B8%8A%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
我有一台运行 Windows 7 SP 1 Ultimate 的计算机(IP 192.168.11.100)。我需要创建一个空会话共享(命名WIA_RIS_共享) 为了服务器 PXE 服务器能够通过网络安装 Windows XP。
根据它的文档, 我创造了:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\NullSessionShares = "WIA_RIS_SHARE"
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\LSA\restrictanonymous = 0
我已经做过了Windows XP SP3(IP 192.168.11.2),看上去运行正常。
这是我检查的方法(从同一局域网上的另一台计算机):
C:\>net view \\192.168.11.2
Shared resources at \\192.168.11.2
Resource name Type Used ad Comments
-----------------------------------------------------------------------------
WIA_RIS_SHARE Disk
但是在Win7机器上检查时:
C:\>net view \\192.168.11.100
System error 5.
Access denied.
据我所知,Null Share Session 应该允许浏览(枚举)共享资源,所以我认为这是一个合适的测试。
我还需要做什么才能启用空会话共享在 Windows 7 上?
答案1
我觉得你没读过Serva 的 NSS 文档正确;请点击“WINDOWS 7的“ 章节。
对于 Windows 7 托管的 NSS,当客户端为 RIS 时这些是显示的步骤:
1. Enabling Anonymous Logon:
1. Run the Control Panel
2. Navigate to:
Network and Internet\Network and Sharing Center\Change advanced sharing settings\
Select:
Turn off password protected sharing
3. Save changes and close the Control Panel.
2. Creating the Share:
1. From File Explorer right click the TFTP root directory and select "Properties."
2. Select the "Sharing" tab and click [Advanced Sharing...]
3. Check "Share this folder", set "Share Name" = WIA_RIS_SHARE and click [Permissions]
4. Remove all users/groups then add the user "Guest" with "Read" rights only and
click [OK] twice.
5. Back at the Properties dialog now select the "Security" tab and click [Edit...]
6. Click [Add..], enter the user "Guest" and click [OK]
7. Selecting the user "Guest" at the "Group or user names:" pane edit its permissions
at the "Permissions for Guest" pane. Make sure you check the "Allow" column with
"Read & execute", "List folder contents" and, "Read" permissions, then click
[OK] twice.
以防您需要为客户端创建 NSS(除了 RIS) 强制要求较旧的方言,如“LANMAN1.0”、“LANMAN1.2”等,那么您可能需要额外的步骤才能在您的主机上启用这些方言;即
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\NullSessionShares = "WIA_RIS_SHARE"
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\LSA\restrictanonymous = 0
就您而言,由于您正在启动 RIS 客户端,因此这些额外的步骤是不必要的......