Script error while opening *.msc

April 8, 2009 at 07:25:13
Specs: Windows XP SP2
I get an error when I try to open services.msc or system restore or any application involving javascript. I tried to register javascript.dll manually using regsvr32. No go. Help me with this. I tried to debug the error when I opened system restore and got this code.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>System Restore Introduction (Step 1)</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
<OBJECT ID=ObjSystemRestore CLASSID="CLSID:fd589b7c-7ce0-11d3-b9e5-00c04f79e399"></OBJECT>
<SCRIPT ID="RestoreUI" LANGUAGE=JavaScript SRC="RestoreUI.js"></SCRIPT>
<LINK id="UI_StyleSheet" REL="stylesheet" TYPE="text/css" HREF="rstrui.css">

<script>

var g_lLastRestore = -1;

function OnLink_HelpF1()
{
OnLink_About();
}

function OnCancel()
{

if ( ObjSystemRestore.Cancel() )
{
external.window.close();
}

}

function OnNext()
{

ObjSystemRestore.CanNavigatePage = true;

if (!ObjSystemRestore.CanRunRestore())
{
external.window.close();
return;
}

if ( RadioTask[0].checked )
{
if (ObjSystemRestore.DisplayMoveFileExWarning())
{
external.window.close();
}
ObjSystemRestore.DisplayOtherUsersWarning();

//
// Disable FIFO and then initalize to get restore points
//
ObjSystemRestore.DisableFIFO();
ObjSystemRestore.InitializeAll();

// Normal Restore
ObjSystemRestore.MainOption = 0 ;
ObjSystemRestore.IsUndo = false;
self.location = "SRUI-Pick.htm";
}
else if ( RadioTask[1].checked )
{
// Create a manual restore point
ObjSystemRestore.MainOption = 1 ;
ObjSystemRestore.ManualRPName = "";
self.location = "SRUI-AddRP.htm";
}
else
{
// if (ObjSystemRestore.DisplayMoveFileExWarning())
// {
// external.window.close();
// }
ObjSystemRestore.DisplayOtherUsersWarning();

//
// Disable FIFO and then initalize to get restore points
//
ObjSystemRestore.DisableFIFO();
ObjSystemRestore.InitializeAll();

// Undo the last restore
ObjSystemRestore.MainOption = 2 ;
ObjSystemRestore.IsUndo = true;
ObjSystemRestore.SelectedPoint = g_lLastRestore;

if ( ObjSystemRestore.CheckRestore() )
{
self.location = "SRUI-Confirm.htm";
}
}

}

function OnLink_Configure()
{
var shell = new ActiveXObject( "Wscript.Shell" );
shell.Run( "control sysdm.cpl,,4", 1, false );
}

function OnRbKeyDown()
{
if (event.keyCode == 13) // enter key
{
OnNext();
window.event.returnValue=false;
}

if (TrCreateRP.disabled == true)
{
if (event.srcElement == RadioTask[0] && event.keyCode == 40) // down arrow
{
RadioTask[2].focus();
RadioTask[2].checked = true;
window.event.returnValue = false;
}

if (event.srcElement == RadioTask[2] && event.keyCode == 38) // up arrow
{
RadioTask[0].focus();
RadioTask[0].checked = true;
window.event.returnValue = false;
}
}

window.event.cancelBubble = true;
}

</script>

<SCRIPT FOR=window EVENT=onresize>

//
// Persist selection and resize
//
if ( RadioTask[0].checked )
ObjSystemRestore.MainOption = 0 ;
else if ( RadioTask[1].checked )
ObjSystemRestore.MainOption = 1 ;
else if ( RadioTask[2].checked )
ObjSystemRestore.MainOption = 2 ;

ObjSystemRestore.CanNavigatePage = true;
self.location = "SRUI-Main.htm";

</SCRIPT>

<script for=window event=onload>

<!-- HERE IS THE ERROR -->
fnSetLowColorImage();

ObjSystemRestore.CanNavigatePage = false;
window.HomePageBody.style.visibility = "visible";

if ( ObjSystemRestore.IsSafeMode == false )
{
TrCreateRP.style.display = "block";
TrCreateRP.disabled = false ;
}

if (!ObjSystemRestore.CanRunRestore())
{
external.window.close();
return;
}

ObjSystemRestore.EnableFIFO();

g_lLastRestore = ObjSystemRestore.LastRestore;
if ( g_lLastRestore >= 0 )
{
if (!ObjSystemRestore.WasLastRestoreFromSafeMode())
{
TrUndoRestore.style.display = "block";
TrUndoRestore.disabled = false ;
}
}

//
// Get current MainOption persisted and set this
//
{

var nMainOption = ObjSystemRestore.MainOption ;

if ( nMainOption >= 0 && nMainOption < 3 )
{
RadioTask[0].checked = false ;
RadioTask[1].checked = false ;
RadioTask[2].checked = false ;

RadioTask[nMainOption].checked = true ;
RadioTask[nMainOption].focus();
}
else
{
RadioTask[0].checked = true ;
RadioTask[0].focus();
}
}

</script>

</HEAD>

<!--

Body of doc

-->
<BODY ID="HomePageBody">

<!--
Background image located on the bottom right of the page
-->
<DIV style="position: absolute; bottom: 0px; right: 0px; z-index: -1">
</DIV>


<table width=100% height=100% cellpadding=0 cellspacing=0 border=0><tbody>

<!--

Page header

-->
<tr height="60px"><td id="TdBranding" colspan=3 class="styHeaderBlock">
<table class="styImage" width=100% height=100% cellpadding=0 cellspacing=0 background="SR_Grad.jpg" style="border-collapse: collapse" bordercolor="#111111"><tbody><tr>
<td width="65px" nowrap> </td>
<td width=80% valign=top nowrap>
<div id="TxtHeader" class="styHeaderText">
Welcome to System Restore
</div>
</td>
<td>
<table><tr>
<td>
<a id="NoLoc1" class="styLink" href="javascript:OnLink_About();">


</td>
<td>
<a id="NoLoc1" class="styLink" href="javascript:OnLink_About();">
<id id=HelpId>Help</id>

</td>
</tr></table>
<id id="NoLoc2"> </id>
</td>
</tr></tbody></table>
</td></tr>

<tr height="3px"><td class="styHorzLine" colspan=3></td></tr>

<!--
Top anchor
-->

<tr height="25px"><td colspan=3>
<table width=100% height=100% cellpadding=0 cellspacing=0><tbody><tr>
<td width=90%></td>
<td class="styImage">
</td>
</tr></tbody></table>
</td></tr>

<tr>
<!-- Left anchor -->
<td id="NoLoc3" class="styImage" width=8% align=left valign=bottom>
</td>

<td>
<table width=100% height=100% cellpadding=0 cellspacing=0 border=0><tbody>
<tr>

<!--

PAGE CONTENT

-->
<td class="styContentBlock" width="45%">
<p id="ParaMain1" class="styText">
You can use System Restore to undo harmful changes to your computer and restore
its settings and performance. System Restore returns your computer to an earlier
time (called a restore point) without causing you to lose recent work, such as
saved documents, e-mail, or history and favorites lists.


Any changes that System Restore makes to your computer are completely reversible.


Your computer automatically creates restore points (called system checkpoints),
but you can also use System Restore to create your own restore points. This is
useful if you are about to make a major change to your system, such as installing
a new program or changing your registry.
</p>
<div>
<a id="NoLoc4" class="styLink" href="javascript:OnLink_Configure();">
<id id="TxtConfigLink">System Restore Settings</id>

</div>
</td>

<td class="styText" width=5%> </td>
<td class="styVertLine" width=1px></td>
<td class="styText" width=5%> </td>

<td class="styContentBlock">

<p id="ParaTaskHdr" class="styTextBold">
To begin, select the task that you want to perform:
</p>
<table id="Tasks" cellpadding=0 cellspacing=0 border=0><tbody>
<tr>
<td><input id="BtnTask1" name="RadioTask" type=radio accesskey="R" onkeydown="OnRbKeyDown()" checked></td>
<td class="styText">
<label id="TxtTask1" for="BtnTask1">
<U>R</U>estore my computer to an earlier time
</label>
</td>
</tr>
<tr height=6px><td></td></tr>
<tr id="TrCreateRP" style="display:none" DISABLED>
<td><input id="BtnTask2" name="RadioTask" type=radio accesskey="E" onkeydown="OnRbKeyDown()"></td>
<td class="styText">
<label id="TxtTask2" for="BtnTask2">
Cr<U>e</U>ate a restore point
</label>
</td>
</tr>
<tr height=6px><td></td></tr>
<tr id="TrUndoRestore" style="display:none" DISABLED>
<td><input id="BtnTask3" name="RadioTask" type=radio accesskey="U" onkeydown="OnRbKeyDown()"></td>
<td class="styText">
<label id="TxtTask3" for="BtnTask3">
<U>U</U>ndo my last restoration
</label>
</td>
</tr>
</tbody></table>
</td>

</tr>

<!--

Navigation row

-->
<tr height="24px">
<td class="styText" height="12px" colspan=5 nowrap>
<table cellspacing=0 cellpadding=0 border=0><tbody><tr>
<td id="TxtInstruction" class="styInstruction" width="50%">
To continue, select an option, and then click Next.
</td>
<td width="10%"> </td>
<td class="styText" width="10%" nowrap>
<button id="BtnNext" class="styButton" onclick="OnNext()" accesskey="N" tabindex=0>
<U>N</U>ext >
</button>
  
<button id="BtnCancel" class="styButton" onclick="OnCancel()" accesskey="C" tabindex=0>
<U>C</U>ancel
</button>
</td>
</tr></tbody></table>
</td>
</tr></tbody></table>

</td>

<!-- Right anchor -->
<td id="NoLoc5" class="styImage" width=8% align=right valign=bottom>
</td>
</tr>

<!--

Bottom anchor

-->
<tr height="24px"><td colspan=3>
<table cellspacing=0 cellpadding=0 width=100% height=100%><tbody><tr>
<td width=90%></td><td class="styImage">
</td>
</tr></tbody></table>
</td></tr>

</tbody></table>
</BODY>
</HTML>


See More: Script error while opening *.msc

Report •


#1
April 8, 2009 at 09:28:22
See if this has any help ---
Try System File Checker:
Do Start, then RUN, then type:

sfc /scannow

note space between the c and /
Have XP CD in your drive.
http://support.microsoft.com/kb/310...
Information about SFC

Most Virus and Spyware scans are likely to work better in Windows Safe-Mode.

http://support.microsoft.com/kb/302796
Troubleshooting steps for issues when you try to use the System Restore tool in Windows XP


Report •

#2
April 8, 2009 at 12:45:26
I would suggest maybe trying a repair install, all you will lose will be your critical updates. It may be worth a shot for you, especially if the sfc /scannow doesn't help.
Here is how to do a repair install:
http://www.microsoft.com/windowsxp/...

Some HELP in posting on Computing.net plus free progs and instructions Cheers


Report •

#3
April 10, 2009 at 04:33:54
Thanks for taking your time to help me out "Chuck 2" & "XpUser4Real".

I tried sfc /scannow... No go...

My system restore service is enabled and the error is not with the service or its executable files... I guess it might be with the .htt file of "System Restore" and "services.msc"...

Repair installation is no good for me, cuz I have Linux on my PC and do a lot of programming on it... If I go for repair install the MBR is going to be changed and I'll not be able to use Linux at all... I cannot boot into recovery console for the same reasons...

(FYI :- I'm using Ubuntu Linux 8.04)


Report •

Related Solutions

#4
April 10, 2009 at 10:26:26
hmmmm, I guess you posted in the windows XP forum so I assumed it was XP

Some HELP in posting on Computing.net plus free progs and instructions Cheers


Report •

#5
April 11, 2009 at 10:34:12
I'm sorry that my previous message confused you to this extent XpUser4Real... I do have a Windows XP with problems...

Reply:

hmmmm, I guess you posted in the windows XP forum so I assumed it was XP

I have a multi-boot system with Ubuntu Linux and Windows XP SP2... I cannot go for repair install or recovery console because it will change the MBR and I will lose my Linux... I suspect it to be a registry issue... Let me know about a way to fix the registry to its old condition...



Report •


Ask Question