Re: Idea for ISA Blocking Scripts on isatools.org

  • From: "Jim Harrison" <jim@xxxxxxxxxxxx>
  • To: "[ISAserver.org Discussion List]" <isalist@xxxxxxxxxxxxx>
  • Date: Thu, 13 May 2004 09:02:54 -0700

Actually, you do have a valid bug, just not the one you think...

You get popup-after-popup when you run them because:
1. the default scripting engine in Windows is WScript (popups for every message)
2. not everyone knows (how) to change the default scripting engine to CScript 
(console output).

Unfortunately, there's no way for a script to know if there is more than one 
instance of itself (HTA does, though).
Fortunately, the fix is to make the script(s) aware of the scripting engine 
that ran them and adjust accordingly.

That's a completely brain-dead change (ISAInfo does it already) that you can 
look for by this weekend.
Thanks for the bug report!

..in the meantime, open a cmd window and type:
    cscript //h:cscript

..now all scripts will run as console apps, not windows.

 Jim Harrison
 MCP(NT4, W2K), A+, Network+, PCG
 http://www.microsoft.com/isaserver
 http://isaserver.org/Jim_Harrison
 http://isatools.org

 Read the help, books and articles!
----- Original Message ----- 
From: "Surago Jones" <surago@xxxxxxxxxxxx>
To: "[ISAserver.org Discussion List]" <isalist@xxxxxxxxxxxxx>
Sent: Thursday, May 13, 2004 06:59
Subject: [isalist] Idea for ISA Blocking Scripts on isatools.org


http://www.ISAserver.org

Hi All,

I can't remember whom it was that developed the virus blocking scripts on 
ISATools.org, however i have a suggestion.

Would it be possible to have the script stop it from running again if it has 
already been started.  As i was running the MyDoom 
script which creates quite a few Protocol Rules, unfortunately i got a tad 
carried away with hitting the enter key to all the 
prompts that appear, and somehow managed to get it to run several copies of the 
script at the same time. :)  (Yep i'm a dumbass)

Anyways, just thought this idea would improve the script if the author can be 
bothered. :)

Cheers

Surago Jones


------------------------------------------------------
List Archives: http://www.webelists.com/cgi/lyris.pl?enter=isalist
ISA Server Newsletter: http://www.isaserver.org/pages/newsletter.asp
ISA Server FAQ: http://www.isaserver.org/pages/larticle.asp?type=FAQ
------------------------------------------------------
Other Internet Software Marketing Sites:
Leading Network Software Directory: http://www.serverfiles.com
No.1 Exchange Server Resource Site: http://www.msexchange.org
Windows Security Resource Site: http://www.windowsecurity.com/
Network Security Library: http://www.secinf.net/
Windows 2000/NT Fax Solutions: http://www.ntfaxfaq.com
------------------------------------------------------
You are currently subscribed to this ISAserver.org Discussion List as: 
jim@xxxxxxxxxxxx
To unsubscribe send a blank email to $subst('Email.Unsub')



Other related posts: