Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > VB WMI Script
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 21st April 02:51
david j duryea
External User
 
Posts: 1
Default VB WMI Script



Hello All

I have a VB script that runs WMI to retrieve serial numbers of workstation
on the local network in which it runs and writes this to either an Access or
SQL Db.

Is there a way that i can add this wmi script in the codebehind page of my
web application to allow remote users across the internet the ability to
execute this over the internet to gather information on there lan via the
web page and write the obtained information to my database?

Im running .net framwork 1.1, windows 2k server with MS SQL 2k

Any help would be greatly appreciated.

Thank you,
Dave
  Reply With Quote


  sponsored links


2 21st April 02:51
joe fawcett
External User
 
Posts: 1
Default 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)
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666