1. When you type in from Windows Start Menu, "Firewall".
2. Click on "Windows Firewall with Advanced Security".
You can start by Inbound Rules and afterwards Outbound Rules, by right clicking it.
Here you can Block the connection and Enable the blockage.
Here are the port that needs to be blocked:
139
1900
3389
4125
445
5355
3. Then click on the word New Rule. This start Rule Wizard, and you can add these before mentioned Ports numbers as following
4. Choose Port and press Next.
5. It is already chosen TCP, skip down.
6. In Specific local ports, type in the 139, press Next.
7. Choose Block the connection, press Next.
8. Make sure rule applied are all checked (Domain, Private and Public included), press Next.
9. Port number applies here, if you started with 139, then type in with capslocked 139 TCP IB_BLOCK.
10. Press Finish.
11. Continue with the steps 1-10, but this time with 139 but be sure to choose UDP in step 5,
then name should be 139 UDP IB_BLOCK.
Put in the rest of the ports with the numbers just as shown here below.
These port numbers should be blocked in both Inbound Rules and Outbound Rules.
There are more port numbers you can add, if you know your Advanced Network monitoring.
Example, some applications use port 8888, and this is under investigation, if it pose security issue or if it can be fixed from OS update.