A way of vaccinating your PC against the latest ransomware attack (dubbed Petya) has been published by various sources. You need to download this file , save it on your PC and run it as administrator.
Apparently Petya will not run if it finds a read-only file called “perfc” in c:\windows. The batch file above creates the file and marks it as read-only.
More information can be found here