
我有一台運行 Windows 7 SP 1 Ultimate 的電腦(IP 192.168.11.100)。我需要創建一個空會話共享(命名為WIA_RIS_SHARE) 為了Serva 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),看起來工作正常。
這是我檢查它的方法(從同一台 LAN 上的另一台電腦):
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.
據我所知,假設空共享會話應該允許瀏覽(枚舉)共享資源,所以我相信這是一個合適的測試。
我還需要做什麼啟用空會話共享在 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”等,那麼您可能需要額外的步驟才能在主機上啟用這些方言; IE
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\NullSessionShares = "WIA_RIS_SHARE"
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\LSA\restrictanonymous = 0
在您的情況下,當您啟動 RIS 用戶端時,不需要這些額外的步驟...