Command to clear access shared username and password through CMD under windows

Enter "\\"+IP or computer name in Run. Both have direct access to the share.

cmd access method:

c:\>net use \\192.168.1.1 123 /user:abc

192.168.1.1 is the IP of the server. 123 is the password. abc is the username. This command is used to log in to the server

c:\>net view \\192.168.1.1

This command is used to view shares

To clear shared access username and password:

Open cmd.

c:\>net use * /del

You can directly clear all shared connections and passwords

 

net share, this command can check which disks are shared. If you delete it, the command: net share /del plus the shared disk you want to delete (you also used the previous command to see the stuff with $ at the back) , but now you can use software to execute such commands

Guess you like

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