Is it possible to monitor IIS services with VB.net or VBscript on
windowsXP
and when it fails execute a command line like "net start w3svc" to
restart
the service?
Yes, using WMI or SNMP you can query overall SMTP status or individual
counters.
You can also control the SCM directly from code instead of shelling to
NET.EXE.
--Sandy
------------------------------------
Sanford Whiteman, Chief Technologist
Broadleaf Systems, a division of
Cypress Integrated Systems, Inc.
------------------------------------
.
Re: ExecQuery hangs whole script but GetObject is fine ... problems/errors with XP SP2 if using WMI.... How to troubleshoot WMI-related issues in Windows XP SP2... > executing the query and the query hangs and thus the whole script ... > of the DCs as a domain admin but in the scheduled task that the script ... (microsoft.public.win32.programmer.wmi)
Re: ExecQuery hangs whole script but GetObject is fine ... > problems/errors with XP SP2 if using WMI.... > How to troubleshoot WMI-related issues in Windows XP SP2... There are 4 PCs I have on a particular ... still messed up even if the query completed.... (microsoft.public.win32.programmer.wmi)
SUMMARY: no time for RTFM ... inetd.conf is where to comment simple services like finger.... services like SMTP need to have their startup files taken out of commission ... Wasn't able to find a snmp startup file or daemon. ... # grep -i smtp services inetd.conf ... (SunManagers)
Re: security center ... but you can query the PC's via WMI (Windows Management Instrumentation) scripting.... The below script is for the local computer, and would need to be modified to determine all PC's on your network/domain and then query each computer individually and report when there is a problem. ... (microsoft.public.windowsxp.security_admin)
Re: Very slow query ... I don't have a more efficient query,...Key WMI Resources:... > On the Mobile Admin server I go to Start->Run and launch wbemtest ... (microsoft.public.win32.programmer.wmi)