[THIN] Re: reports - script it

  • From: "Brian Murphy" <bem9127@xxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Thu, 13 Feb 2003 18:05:53 -0600

Is this for a specific user or every user?

If your looking for something free you could script it using VBScript
and cscript host? <example>
Use this to monitor for a specific event on a specific system.  Note: To
run the script on a remote system
Simply change the "." of strComputer to the Netbios name of your target.
You could also use a dictionary 
For multiple systems.
---------------------begin script

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate, (Security)}!\\" & strComputer &
"\root\cimv2")
Set colMonitoredEvents = objWMIService.ExecNotificationQuery _    
    ("Select * from __instancecreationevent where TargetInstance isa
'Win32_NTLogEvent' and TargetInstance.EventCode =  '538' ")
Do
    Set objLatestEvent = colMonitoredEvents.NextEvent
        strAlertToSend = objLatestEvent.TargetInstance.User _ 
            & " Logged onto system."
        Wscript.Echo strAlertToSend
Loop
----------------------end script

Or pipe to a text object.............................





Brian Murphy, MCSE, MCSA, CCNA, CCA
Murphy Consulting (bem9127@xxxxxxxxx) (469-223-1621)
- Microsoft Certified Systems Engineer 2000
- Microsoft Certified Systems Engineer NT 4
- Microsoft Certified Systems Administrator 2000
- Microsoft Certified Professional + Internet
- Citrix Certified Administrator Metaframe 1.8
- Citrix Certified Administrator Metaframe XP
- Cisco Certified Network Administrator + Pix

"If you are not the intended recipient, or an authorized agent of the
intended recipient, you are hereby notified that any use, dissemination,
distribution or copying of this information is STRICTLY PROHIBITED. If
you have received this message by error, please notify the sender
immediately and delete this email." 


 
 
-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On
Behalf Of Jason A. Shivok
Sent: Thursday, February 13, 2003 3:19 PM
To: thin@xxxxxxxxxxxxx

Is there any way to generate a report that would output when a user
logged on, logged off, and possibly disconnected?
*********************************************************
This Week's Sponsor - RTO Software / TScale TScale increases terminal
server capacity. 
Get 30-40% more users per server to save $$$ and time. 
Add users now! - not more servers. If you're using Citrix, you must
learn about TScale!  Free 30-day eval:
http://www.rtosoft.com/Enter.asp?ID=79
**********************************************************

For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode
use the below link:
http://thethin.net/citrixlist.cfm

*********************************************************
This Week's Sponsor - RTO Software / TScale
TScale increases terminal server capacity. 
Get 30-40% more users per server to save $$$ and time. 
Add users now! - not more servers. If you?re using Citrix, 
you must learn about TScale!  Free 30-day eval:
http://www.rtosoft.com/Enter.asp?ID=79
**********************************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

Other related posts:

  • » [THIN] Re: reports - script it