I was trying to access the administration shares (c$, admin$, etc.) from smbclient on a Debian/Squeeze machine and was being given:
tree connect failed: NT_STATUS_ACCESS_DENIED
If your Windows 7 workstation is on a domain, you won’t get this issue, however if it is on a workgroup then the following registry setting is required:
1 2 3 4 |
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] "LocalAccountTokenFilterPolicy"=dword:00000001 |
More information found at http://support.microsoft.com/kb/951016.
Downloading the following .reg file and running it on the workstation will make the above change.
Download
LocalAccountTokenFilterPolicy.reg (334 bytes, 2,101 hits)
Thanks for this info.
FYI, your code snippet is missing the ‘\’ separators in the
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem]
section, while your .reg file has it correct.
Thanks Todd. I changed the WordPress plugin that does the code snippets and I lost all the backslashes throughout the site. It seems I have missed a few when replacing them. 🙂
Thanks, I re-shared at http://stackoverflow.com/a/42635167/320594.