Win7 share check save credentials, the solution to invalid after restart

Two methods can be solved, the first one is recommended.

the first method:

When Win7 accesses the share of other servers, after entering the shared server account password and clicking Save the login credentials, when the visitor accesses the share again after the machine restarts, he needs to enter the account and password again. Add login credentials for long term validity:

cmdkey /add: shared server IP /user: shared server username /pass: shared server password;

E.g:

Shared server ip is: 192.168.31.180

Shared server username: administrator

Shared server password: test123

The command is written like this:

cmdkey /add:192.168.31.180 /user:administrator /pass:test123

 

The second method:

(1) Click the "Start" button, type gpedit.msc, and press Enter. ‌If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

(2) Click "Computer Configuration" - "Administrative Templates" - "System" - "Credential Assignment". Double-click "Allow assignment of saved credentials for NTLM server only authentication" in the right window.

(3) Select "Enabled" in the pop-up window, then click "Display", in the pop-up window, enter "TERMSRV/*". (make sure TERMSRV is uppercase)

(4) Use the "gpupdate /force" command to refresh the group policy or restart the computer to make it take effect.

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326527532&siteId=291194637