Re: Idea for ISA Blocking Scripts on isatools.org

Ah Sweet. :)
 
One possibility to detect if the script it already running, would be to create 
a temporary file at the beginning of the script, then remove it at the end of 
the script, and use a check to see if it exists before continuing within the 
script. :)  (not sure if that is possible, but an idea at least. :) )
 
heh, Tho i guess i should just be a little more careful with my keypresses. :)
 
Cheers
 
Surago Jones

-----Original Message-----
From: Jim Harrison [mailto:jim@xxxxxxxxxxxx]
Sent: Friday, 14 May 2004 04:03
To: [ISAserver.org Discussion List]
Subject: [isalist] Re: Idea for ISA Blocking Scripts on isatools.org



http://www.ISAserver.org

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')


------------------------------------------------------
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: 
surago@xxxxxxxxxxxx
To unsubscribe send a blank email to $subst('Email.Unsub')



Other related posts: