Event viewer Windows Store failed to sync machine licenses. Result code 0x80070002

This was written as an aide memoire for CMX specialists but its been viewed so many times it has been re-edited to make sense to the rest of the world!This 

Got to Control Panel, then to Administrative settings.

Select Task scheduler settings

Find Windows WS and change License validation entry to disabled

Updated 18/07/16