I'm writing this here for the sake of posterity as I've today managed to solve a problem that has been driving me nuts for ages.
ProblemActive content will not run on my local machine.
Javascript works from the internet but wont work if the script is stored locally.
SymptomsJavascript/any scripts wont work on the local machine (major headache for a coder)
Some Windows Help Files stop working or break if the links are javascript related.
Cant view certain Windows logs such as Computer Management > Services & Applications > Services > Advanced.
Tried all the usual stuffThe following should be tried first- Reset all the security zones to default
- Say yes to the tool bar to allow active content
- Made sure Internet Options > Advanced > Security > 'Allow Active content to run in files on My Computer' was checked.
After searching on the internet I found this type of problem can occur through MS Local Machine lockdown. One of the best references I could find was
here where I found that the following registry keys should be set
Warning the following involves registry changes - make sure you back up the registry and you do so at your own risk.HKEY_CURRENT_USER\ Software\ Microsoft\ Internet Explorer\ Main\ FeatureControl\ FEATURE_LOCALMACHINE_LOCKDOWN\ iexplore.exe
DWORD 1= ON 0 = OFF
HKEY_CURRENT_USER\ Software\ Microsoft\ Internet Explorer\ Main\ FeatureControl\ FEATURE_LOCALMACHINE_LOCKDOWN\ Settings\ LOCALMACHINE_CD_UNLOCK
DWORD 0=ON 1= OFF
The above should the problem for most users, but it didnt for me.. and now I was on my own as I couldnt find any further real references as to where the problem could be.
I couldnt see anything obvious in the registry and even sent a copy of my NTuser.dat to a friend to see if he could see anything that differed on his machine. - Nada.
Hmmm something strange - Its not Local Machine.I created a new user on the PC and noticed that once I'd set the user to allow active content on the local machine - all worked fine.
So this is not a local machine problem as first thought - its obviously user specific.
So back to HKCurrentUser... but where to start?
OK I found a few references to
HKEY_CURRENT_USER\ Software\ Microsoft\ Windows\ CurrentVersion\ Internet Settings\ Lockdown_Zones\0
and
HKEY_CURRENT_USER\ Software\ Microsoft\ Windows\ CurrentVersion\ Internet Settings\ Zones\0
but there wasnt any real info as to what I was looking for in there... so armed with screen cap and switching between users it was a case of looking at all the different Values.
OK so its a Local Machine problem so it has to be zone 0 because
Lockdown Zones
· 0: Local Machine
· 1: Local Intranet
· 2: Trusted Sites
· 3: Internet
· 4: Restricted Sites
But Ive no idea what each value is and there were quite a lot of differences between the 2 users... but I now had some Keyids to start looking at.
Armed with this info I came across this excellent site
Inside the registry.com.
Obviously lots to look at but working my way down the list for those that were different and after a couple of false starts, I came across key 1400 and looked it up
Policy: Allow active scripting
Now we're getting somewhere - now I just need to fathom out what the values should be.
0 = enabled 1 = prompt 3 = disabled
hmmm yeah my DWORD was set at 3 - which totally blocks it - no warnings or anything.
So now we have
HKEY_CURRENT_USER\ Software\ Microsoft\ Windows\ CurrentVersion\ Internet Settings\ Lockdown_Zones\0
Key 1400
change DWORD to 0
Crossed my fingers.. made the change........ and it worked.
I can code and test my scripts again.. windows help files work as do log file advanced displays.
YAY.
Hopefully this info will help someone else solve something that has been wrong for a few months now.. Im not sure when it occurred.. possibly after I let Ashampoo run loose on my PC and it accidentally deleted a pile of my own scripts/progs files I wasnt too chuffed about.
Granted neither of these 2 incidents wouldnt really have affected anyone who is not a coder, but warning to those that are... and I hope this info can help someone else with a similar problem.
Result - one happy kitz that can now code and test files locally without having to upload them.