I found this script very useful. You can use it to write messages to the event tog. I tested it
on win2K soI'm not sure how it runs on other systems. The source for this file is MS.
// NOTIFY.JS
// Description:
// Notify.js can be customized by the user
// Right now it reports a missing hotfix on commandline and writes an event to the eventlog
// But it is also possible to generate a mail, halt IIS or generate other events that are
// relevant to administrators.
function Notify(type,sBulletin, sTitle, sLink, sMachine)
{
var oShell = new ActiveXObject("WScript.Shell");
switch(type)
{
// consts (for instance HOTFIX) are declared in HFCHECK.WSF
case HOTFIX:
WScript.Echo("\nMissing Hotfix on Machine " + sMachine + "
Detected:\nMicrosoft Security Bulletin (" + sBulletin + ")\n" + sTitle + "\nLink:
http://www.microsoft.com" + sLink);
oShell.LogEvent(2,"Missing Hotfix on Machine " + sMachine + "
Detected:\nMicrosoft Security Bulletin (" + sBulletin + ")\n" + sTitle + "\nLink:
http://www.microsoft.com" + sLink);
break;
case WORKAROUND:
WScript.Echo("\nWorkaround Notification for Machine " +
sMachine + ":\nMicrosoft Security Bulletin (" + sBulletin + " )\n" + sTitle + "\nLink:
http://www.microsoft.com" + sLink);
oShell.LogEvent(2,"Workaround Notification for Machine " +
sMachine + ":\nMicrosoft Security Bulletin (" + sBulletin + " )\n" + sTitle + "\nLink:
http://www.microsoft.com" + sLink);
break;
case MISSINGINFO:
WScript.Echo("\nHotfix Warning for Machine " + sMachine
+ ":\nUnable to verify hotfix install \nMicrosoft Security Bulletin (" + sBulletin + ")\nLink:
http://www.microsoft.com" + sLink);
oShell.LogEvent(2,"Hotfix Warning for Machine " + sMachine
+ ":\nUnable to verify hotfix install \nMicrosoft Security Bulletin (" + sBulletin + ")\nLink:
http://www.microsoft.com" + sLink);
break;
}
}
PHP Array to Javascript Object Categories : PHP , Arrays , Java Script OverEasy - PHP generated JavaScript to do mouseovers on
your pages. Modify one file and one function does it all
for you! Categories : PHP , Java Script , HTML and PHP , MySQL This is a script that list all image files on a given directory, and displays
the thumbnails nicely formated within an HTML table. It also make use of
JavScript to open pop up windows when the users want to see the full photo. Categories : Graphics , PHP , Complete Programs , Java Script How to display a PHP variable value from a selectbox without reloading the
page by merging PHP and Javascript variables. Categories : PHP , Java Script , Variables Remote Scripting: send form POST data to a script and insert the results into a page without refreshing the page. Categories : PHP , AJAX , HTML and PHP , Java Script JavaScript dropdown list menu to switch any page. Categories : Java Script , Beginner Guides , Form Processing complete simply working javascript password generator file. Use letter, vowels, consonants (uppercase and lowercase) arrays to create a really random and secure password.
improved security using time functions to initialize random number generator. Categories : Java Script , HTML , Security , Authentication , Strings JavaScript Fade In Text Messages Categories : Java Script , DHTML How to create <SELECT> menues that change on the fly according to other <SELECT> menues on the page? Categories : Java Script , HTML Linked comboboxes with php-mysql & javascript Categories : PHP , Java Script , Databases , MySQL Flash Your Message at Status Bar Categories : Java Script , Browsers Local Time clock and Server time usign PHP and JavaScript Categories : PHP , Java Script , Date Time , Beginner Guides Popup window creator for images on the Fly. Categories : PHP , GD image library , Java Script javascript doesn't accept a fieldname with [] Categories : Java Script JAVASCRIPT interface class to the eBusiness Charts generatation remote service. Categories : Java Script , Graphics , Charts and Graphs