This is a problem I’ve run into probably 3 or 4 times, and each time, the solution is the same. It’s a frustrating issue that can drive you nuts if you don’t know where to look to correct it.
Most solutions on the internet point to a bit of a dead end comprised of general-purpose advice for any sort of library-related problems in Windows. They advise that you try the following commands at an elevated Command Prompt:
Problem is, this never seems to work… at least, not on the machines I’ve worked on.
Fortunately, the real solution is comparably easy. Open up regedit and check the following registry key:
Within it, there is a registry value called (Default) which should carry a Data value of:
If it says something else, you’ll need to change it to match the above. This should fix your problem!
So what’s the reason for the bad value? Nearly always, it’s thanks to a broken or partially uninstalled antivirus (the most common culprits are McAfee and avast!, both of which I’ve seen leave behind values in this key after an attempted uninstall). AV programs use this value to redirect script processing through a driver of their own for filtering purposes so that they can check for suspect behavior.