Here is an article on a possible way of protecting your systems from the Petya/NonPetya ransomware. The article was published on ZDnet on June 28th, 2017:
http://www.zdnet.com/article/create-a-single-file-to-protect-yourself-from-latest-ransomware-attack/