While working with windows XP your desktop may get white with a button Recover your Active Desktop. and when you click on that generally it should recover your Windows theme but sometimes it doesn’t and giving you following error.

"An error has occured in a script on this page:

Line 65

Char 1

file:///C:/Documents%20and%20Settings/UserName/Application%20Data/Microsoft/Internet%20Explorer/Desktop.htt"



Heres a basic script to change the above registry setting.

  • Open notepad.
  • Copy and paste following code and save it with recovery.vbs file


  • WScript.Echo "script execution started"

    HKEY_CURRENT_USER = &H80000001

    strComputer = "."
    Set objReg = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
    strKeyPath = "Software\Microsoft\Internet Explorer\Desktop\SafeMode\Components"
    strValue = "0"
    ValueName = "DeskHtmlVersion"
    objReg.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, ValueName, strValue

    WScript.Echo "script execution successfully compelted. Thank you for using script. Please do not forget to provide feedback on http://javadotnet.in"

  • execute it

or you can also download file from following location.
RecoverDesktop.vbs

4 thoughts on “Resolved : Active Desktop Recovery/Script Error with desktop.htt”
  1. Hello
    thanks for the script. i finally recoverd my active desktop.
    i am curious if you have some tips, how to change active desktop images as in my office
    they have old and boring co. based wallpaper, i need to change it but it reqries admin rights
    is there any other way to change it

  2. Ɗo you mind if I quote a couple of yߋur posts as lօng as I provide credit аnd sources baсk to
    yοur webpage? Мy blog site іs in the very ѕame niche aѕ yօurs
    aոd my visitors woulɗ genuinely benefit from somе of tɦe
    іnformation ƴou provide here. Pleɑse let mе know if this okаy with yoս.
    Appгeciate it!

  3. I needed to thank you for this good read!! I absolutely loved every bit
    of it. I have got you saved as a favorite to look at new stuff you post…

Leave a Reply to favicon generatorCancel reply