We can stop Lanman server service from command line using the below command.
net stop lanmanserver
This stops the server service for current session, but when the system is rebooted it will start again. To not restart the service we need to disable it. We can do that from command line using the below command.
sc config lanmanserver start= diabled