In Windows, one can share files to other users in the same network using SMB protocol. We can disable sharing of a folder/drive from command prompt using
Open elevated windows command prompt and run the below command to see shares
c:\>net share
To disable sharing C$, run the below command
c:\>net share C$ /DELETE
To disable file sharing on the computer
c:\>net stop lanmanserver
Note: Stopping this service also stops Computer Browser Service
Happy Sharing...
net share
command.Open elevated windows command prompt and run the below command to see shares
c:\>net share
To disable sharing C$, run the below command
c:\>net share C$ /DELETE
To disable file sharing on the computer
c:\>net stop lanmanserver
Note: Stopping this service also stops Computer Browser Service
Happy Sharing...
No comments:
Post a Comment