The latest Wannacry and Petya attacks have both used an outdated and very rarely used windows protocol, and by default it is enabled in Windows10, 8 and 7!

SMB stands for Server Message Block protocol and has now been superceded by SMBv2 and SMBv3 which are fine to be left enabled.

So how do you disable this redundant protocol you ask?

If you are on Windows10 and have installed the Creators Update, then Microsoft have disabled this protocol by default.

If not and you are running Windows10 or Windows8 then follow these steps;

1. Go to the control panel, select Programs. Under Programmes and Features select Turn Windows Features On or Off.

2. Scroll through the list and untick SMBv1

3. Restart the PC

Youre Done - and a lot safer!

Windows7 is much harder and requires a registry edit, but the process is detailed below;

Before you start be warned - editing the registry can cause your system to become unstable or potentially inoperable - I strongly suggest that you back up the registry and your computer before attempting this

1. Click start and then type regedit and click on regedit.exe

2. Navigate, using the left hand navigation pane, to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

3.Right-click the Parameters key and choose New > DWORD (32-bit) Value.

4.Name the new value SMB1 . The DWORD will be created with a value of “0”, and that’s correct. “0” means SMBv1 is disabled. You will not need to edit the value after creating it.

5. Thats it ! All you need to do now is close the registry editor and restart the machine for the changes to take affect.