Im trying to disable Dr Watson throughout the school to at least partly help with my IE7 crashing problem
Im following the instructions written here
http://support.microsoft.com/kb/188296
Ive exported the .reg file, and added a - in it to remove the key as stated here
http://support.microsoft.com/kb/310516
and it works fine.
This is the reg file:
So now I want to use a batch file so I can run it on bootup.Code:Windows Registry Editor Version 5.00 [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug] "Auto"="1" "Debugger"="drwtsn32 -p %ld -e %ld -g" "UserDebuggerHotKey"=dword:00000000
I have been using the line
Which for any other reg file (adding one) works fine.Code:regedit /s DrWatsonRemove.reg
But for some reason with this one (removing a key) the batch file just runs and nothing happens
Any ideas? I'm sure Im just doing something stupid, so just putting it here in case anyone can see a mistake im making
How about reg import drwatsonremove.reg ?
Think meastough1 has the easy answer for you.
Is this part of the kids logon?
I'm sure you need to be an administrator to write to [HKLM]

Use the following VBS script.
The example above removes items from the run at start up area of the registry, but by changing the values in 'StrKeyPath=' and 'strValueName=' you can adapt it to remove whatever registry keys you need.Code:Const HKEY_LOCAL_MACHINE = &H80000002 strComputer = "." Set objRegistry=GetObject("winmgmts:\\" & _ strComputer & "\root\default:StdRegProv") strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" strValueName = "ATICCC" objRegistry.DeleteValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName strValueName = "igfxtray" objRegistry.DeleteValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName
Set it as a startup script, not a logon script and it'll work fine (I used it to remove lots of program entries that were running at startup on our workstations, and it worked a treat.)
Hope that helps,
Mike.
There are currently 1 users browsing this thread. (0 members and 1 guests)