• 1. London, UK
  • 2. New York, NY
  • 3. Sydney, Australia
  • 4. Melbourne, Australia
  • 5. San Francisco, CA
  • 6. Chicago, IL
  • 7. Toronto, Canada
  • 8. Moscow, Russia
  • 9. Houston, TX
  • 10. Amsterdam, Netherlands

Wednesday, November 22, 2006

 

SCRIPT: Show OWA Users

Posted by Bharat Suneja at 7:00 PM
This is a modified script that shows current OWA/HTTP logons to the Store(s) on a given server(s). The script takes NetBIOS names of servers as command-line arguments (separated by spaces), uses the Exchange_Logon WMI class to connect to a server and retrieve list of users currently logged on.

ShowHTTPLogons.vbs EXCH1 EXCH2 EXCH3

[If Cscript is not your default scripting engine, it is advisable to add Cscript when you run this: cscript SHOWHTTPLogons.vbs EXCH1 EXCH2 EXCH3]

It omits any non-HTTP logons, and displays the mailbox (display name), logged on user, and the Store name in a comma-separated format.

To dump output to a CSV file, simply add ">MyOutputFileName.csv" to the end of the command when running the script. E.g. cscript ShowHTTPLogons.vbs EXCH1 EXCH2 EXCH3 >MyOutputFileName.csv

The script does not display logons by the System account (NT AUTHORITY\SYSTEM), but these are counted and displayed as a summary, in addition to the number of actual HTTP logons by users. Please note, even in one OWA session, you could have multiple HTTP logons on the Store, so this is by no means a way to calculate the actual number of users currently logged on using OWA. You will see repeated entries for mailboxes because of this (... it's not a very tidy script, but written in a hurry....hopefully I will be able to fix that at a later date).

Download:
showHTTPLogons.zip

Note: You will need to extract the file and rename it with a VBS extension.

Labels: ,

3 Comments:

December 8, 2006 7:24 AM
Anonymous Anonymous said...

Hello,

Is it available for Front-End servers ?

Thx

Remy

 
November 20, 2007 4:17 AM
Anonymous Anonymous said...

Hello


Your script was very good, but I do not find the users connected on the Front-end, It is better to test the load balancing. Could try to make a script for that

Thanks

Denis

 
February 7, 2008 2:50 AM
Anonymous Anonymous said...

Your script was very good, but it works only on a machine in a same domain (same credential). It is possible to do a version with an another credentials


Thanks

 

Post a Comment

Links to this post:

Create a Link

<< Home