This little script will create the files needed in order to prevent an infection with Bad Rabbit and Petya/NotPetya. In addition to the original Gist this script will work fine on PCs where Windows is not installed on the C: drive and on any non-English computer.
Thanks to Rahul Thakare @bantya for his simple yet neat little script, at https://gist.github.com/bantya/f1796317490cbc8d1264565245488e97.
A detailed video about how these files prevent an infection with Bad Rabbit: https://www.youtube.com/watch?v=Y6WOpE92vKc
- Use of %windir% instead of fixed path (C:\Windows).
- Use of SID S-1-5-32-544 instead of just "Administrators" to make it work properly on non-English computers.
- Installer and uninstaller packed into one script.
Note: This might not work anymore after a possible ransomware update. Also this is not something to save you from an existing infection - prevention only. So please don't entirely rely on this script!
2017, Phoenix1747.