Windows – Disable SMB on specific interface windows

interfacepowershellserver-message-blockwindows

I've got an smb share on a computer connected to a 10.0.0.0 network and an 192.168.0.0 network, and I only want smb to listen on the 10 network. Not just setting up a firewall or something like that, simply close it off. Ideally something in powershell would be good but I'm not picky.

Best Answer

You can go through the following steps: - Open Control Panel - Click on Network and Sharing Center - Go to Change Adapter Settings - Right click on network adapter, disable which you don't want to share the files and choose Properties. - Disable File and Printer Sharing

Related Topic