this could be probably due to an antivirus program running on your OS.
Some AVs have "live protection" modes that scan for things like this and stop execution.
Please turn off or uninstall completely (the better way) your antivirus and try again
You could also try booting in safe mode (with networking) and see if it works.