Here is the solution to those having problems with Microsoft Security Essentials not being removed prior to Windows 10 upgrade and then being left with it still running after the upgrade.
Open File Explorer
Browse to C:\Program Files\Microsoft Security Client\
Locate the file Setup.exe, right click on it and choose properties
Click on the Compatibility tab
At the bottom of the tab click 'Change Settings for all users'
On the next screen check the box for 'Run this program in compatibility mode for:' and choose Windows 7
Click OK
Click OK
From the taskbar search box type cmd.exe and right click and choose 'Run As Administrator'
This will open an elevated command prompt as Administrator
In the command prompt window copy/paste or type the following:
C:\Program Files\Microsoft Security Client\setup.exe /x /disableoslimit
Choose to Uninstall
Once this has finished reboot and Microsoft Security Essentials will be gone and Windows Defender should be running correctly.