Allowing Approved Scripts to Run

T

TrickTrash

I've been using Doug Knox's handy Restore Point Script for some time. It
creates a System Restore Point in seconds without having to open XP's slow,
cumbersome System Restore prog. I'd run it regularly in Tasks or with a hot
key combination whenever I wanted to be sure to have an easy restore option.

Just recently it won't run, but opens in notepad, so obviously I've done
something to cause this, probably a program I've installed or tweak I've
forgotten.

The problem is that I can't fix this behavior.

If I check in XQDC X-Setup it tells me *.vbs files aren't associated with
Notepad. I use Script Sentry to protect for this behavior & have the script
approved there, plus I know it worked with this previously.

I can't permanently associate it with Wscript.exe as in the Open With
dialog, the "Always use the selected program to open this kind of file" box
is permanently greyed out in all selections and I don't know when this
became the case or what caused this. Some security setting I've forgotten
about I suspect.

There's no option in the Properties dialog that will help and I don't know
what else to try.

I can run it from the command line of course, but I miss the ease of use of
my previous setup and the real question is to understand how to fix it even
if I'm too scatterbrained to remember what may have caused the problem.

Anyone got any ideas ?

Tricktrash
 
J

Jon

Right-click the script and see which option comes up in bold on the context
menu ie either Edit or Open.

If it's "Edit", then you can set the default action for clicking on .vbs
files to "Open" via

My Computer > Tools > Folder Options > File Tyes > [click on vbs] >
Advanced...

--
Jon

Endless Loop: n.,see Loop, Endless.
Loop Endless: n.,see Endless Loop.

There is plenty of evidence to suggest that "TrickTrash"
 
T

TrickTrash

Jon

Thanks for your reply.

It does come up as "Open" but I've a problem with assigning an action for a
file type through Folder Options|File Types|Advanced. For some reason I
can't get access to the Advanced Button, which is greyed out for all file
types. I don't know what caused this, or how to correct it. It means I've
no easy, direct access to the options for File Types and can't change the
current setup.

Any other approaches I might take ?

Yours

TrickTrash




Jon said:
Right-click the script and see which option comes up in bold on the
context menu ie either Edit or Open.

If it's "Edit", then you can set the default action for clicking on .vbs
files to "Open" via

My Computer > Tools > Folder Options > File Tyes > [click on vbs] >
Advanced...

--
Jon

Endless Loop: n.,see Loop, Endless.
Loop Endless: n.,see Endless Loop.

There is plenty of evidence to suggest that "TrickTrash"
I've been using Doug Knox's handy Restore Point Script for some time. It
creates a System Restore Point in seconds without having to open XP's
slow, cumbersome System Restore prog. I'd run it regularly in Tasks or
with a hot key combination whenever I wanted to be sure to have an easy
restore option.

Just recently it won't run, but opens in notepad, so obviously I've done
something to cause this, probably a program I've installed or tweak I've
forgotten.

The problem is that I can't fix this behavior.

If I check in XQDC X-Setup it tells me *.vbs files aren't associated with
Notepad. I use Script Sentry to protect for this behavior & have the
script approved there, plus I know it worked with this previously.

I can't permanently associate it with Wscript.exe as in the Open With
dialog, the "Always use the selected program to open this kind of file"
box is permanently greyed out in all selections and I don't know when
this became the case or what caused this. Some security setting I've
forgotten about I suspect.

There's no option in the Properties dialog that will help and I don't
know what else to try.

I can run it from the command line of course, but I miss the ease of use
of my previous setup and the real question is to understand how to fix it
even if I'm too scatterbrained to remember what may have caused the
problem.

Anyone got any ideas ?

Tricktrash
 
J

Jon

Does your user account have "administrator" status or "limited"?

Control Panel > User Accounts

If it's not "administrator" then try changing it via another administrator
level account (or the Administrator account in safe mode)

Uninstalling and reinstalling script sentry might be another option.
 
T

TrickTrash

It is an Administrator account.

And yes, it is time to uninstall Script Sentry and a couple of other
tweaking programs.

I keep installling these brand new shiny progs to have a look at them, but I
mostly don't need them and would be better off without them. I'll just have
to learn to restrain myself. And maybe I'd know where I am then. Thanks
for your advice Jon.


nick
 
D

Doug Knox MS-MVP

Open REGEDIT and go to:

HKEY_CLASSES_ROOT\VBSFile\Shell

In the right pane, by default, the Default value is empty, it defaults to Open. There's nothing there. Double click it and enter Open.

Other than that, its sounds like your Script Sentry program is intercepting it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top