Microsoft's latest threat analysis notes an ever-increasing sophistication in the ransomware codes, but states that Windows 10 and Windows 10 S block such threats by default.
https://www.notebookcheck.net/Microsoft-ensures-Windows-10-is-the-only-way-to-stay-protected-against-ransomware-attacks-like-Petya.231972.0.html