1 Make sure you have installed the patch:
Windows 7 32-bit
http://download.windowsupdate.com/d/msdownload/update/software/secu/2017/02/windows6.1-kb4012212-x86_6bb04d3971bb58ae4bac44219e7169812914df3f.msu
Windows 7 64-bit
http://download.windowsupdate.com/d/msdownload/update/software/secu/2017/02/windows6.1-kb4012212-x64_2decefaa02e2058dcd965702509a992d8c4e92b3.msu
Windows 8 32-bit
http://download.windowsupdate.com/c/msdownload/update/software/secu/2017/05/windows8-rt-kb4012598-x86_a0f1c953a24dd042acc540c59b339f55fb18f594.msu
Windows 8 64-bit
http://download.windowsupdate.com/c/msdownload/update/software/secu/2017/05/windows8-rt-kb4012598-x64_f05841d2e94197c2dca4457f1b895e8f632b7f8e.msu
Windows 10 32-bit
http://download.windowsupdate.com/c/msdownload/update/software/secu/2017/03/windows10.0-kb4012606-x86_8c19e23de2ff92919d3fac069619e4a8e8d3492e.msu
Windows 10 64-bit
http://download.windowsupdate.com/c/msdownload/update/software/secu/2017/03/windows10.0-kb4012606-x64_e805b81ee08c3bb0a8ab2c5ce6be5b35127f8773.msu
2 Create "readonly" file %windir\perfc.dat and %windir\perfc
If you already have those files means that you're possibly infected. In that case don't restart your machine and try the steps from this article:
http://tinysoftware.com/petya-a-virus-remove/
https://steemit.com/virus/@jibi333/my-pc-got-infected-by-ransomeware-wanacry-virus
Thanks for this...I know what I am doing tonight then. I have 7 computers at my work too :(
Patch works fine! It won't take much time to install. Good luck!