VB WMI Script
If you could run it on your web server then you should be able to do this,
providing it doesn't have any UI (message boxes etc.). You wouldn't put it
in the code though, in traditional ASP you'd use WScript.Shell to run a
command such as "CScript.exe myScript.vbs", in ASAP.NET you'd use the
process class to run it. Alternatively re-write the script to use the .NET
access to WMI and have the code in your page.
You need to be sure that the person running the page, or the IIS account if
anonymous access is on, has rights to run the relevant code.
--
Joe (MVP)
|