Disable Windows sharing service, release 445 port

Disable Windows sharing service, release 445 port

In the default configuration of Windows systems, will start a shared service for the LAN machines can be by, for example  \\192.168.1.1 to access the system shared files and printers and other forms.

Windows Sharing

The service is mainly using 445 port for communication, we can command  netstat -an | findstr :445 to confirm that the port is in use.

445 port is occupied

If you do not need to use the service, or wants to release 445 port for use by other applications, we can disable the Windows Sharing service.

Windows displays the name of shared services for the  Serveractual service name  LanmanServer; another service that relies on this service display name of  Computer Browserthe actual service name  Browser, the service maintains an updated list of computers on the network, and will appear on the left side of the Explorer under network project.

To disable and stop the two services, we can open the service ( services.msc), which are found in these two services, the right to enter the property, you can choose to disable and stop.

Computer Browser Service

Server Service

Service Properties menu

In addition, we can also disable and stop related services through the command line.

sc config Browser start= disabled
sc stop Browser

sc config LanmanServer start= disabled
sc stop LanmanServer

Command Line Stop Computer Browser Service

Stop Server command-line service

When the service is stopped, we can find shared before this time has been inaccessible in the Explorer. And will be reported out one of the following error:

Windows can not access the shared - not start the Server service

Windows 共享无法访问 - 网络错误

However, to make the release of Windows 445 ports, in addition to stop the service, we also need to reboot the computer.

After the reboot is complete, then execution was performed before  netstat -an | findstr :445 order, we will find that had previously been occupied by the port has been released.

445 端口被释放

So far, we have succeeded to stop and disable the related services, the release of 445 ports.

Guess you like

Origin www.cnblogs.com/niewd/p/10948803.html
Recommended