question

Matteo-3726 avatar image
0 Votes"
Matteo-3726 asked LimitlessTechnology-2700 answered

PSexec Net use work, but smb failed with username e password incorrect

Hi everyone,
I have a problem with the net use of a shared folder.
I ran the psexec -i -s cmd performed Net use S: \\ip\folder /u:domain\user password /persistent:yes and the command worked, infact if in the same screen I do s: I enter the folder and see the files.
Going to the explorer, however, the folder is not accessible because it tells me that the user and password are not correct.
p.s. this procedure works perfectly on another virtual.

p.s.s. before launching psexec i deleted all existing net use and i don't have any credentials saved on credential manager.


Any idea!

thanks.

windows-serverwindows-sysinternals-generalwindows-sysinternals-pstools
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hi Matteo-3726,

try adding the following key, and then restarting the computer :

reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f

Please see this article about this reg key:

https://support.microsoft.com/en-us/kb/947232

I hope this answers your question.



--If the reply is helpful, please Upvote and Accept as answer--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.