因为UAC的存在, 如果使用windows 7 的默认共享,比如 \\abc\c$ ,会被提示 无权限错误. 为了方便在局域网共享文件,找到了这个方法.
- Open the registry editor.
- Navigate all the way to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.
- Right-click in the pane on the right side and add a new DWORD (32-bit).
- Give the new setting the name LocalAccountTokenFilterPolicy.
- Double click on that setting and give it a value of 1.
该方法不会影响本机的UAC,经过测试,成功激活 默认共享. 附上reg文件以备懒人使用.
1: Windows Registry Editor Version 5.00
2:
3: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
4: "LocalAccountTokenFilterPolicy"=dword:00000001