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.
Usage:
To dump output to a CSV file, simply add >MyOutputFileName.csv to the end of the command when running it, as shown here:
Note: You will need to extract the file and rename it with a VBS extension.
Usage:
ShowHTTPLogons.vbs EXCH1 EXCH2 EXCH3
If Cscript is not your default scripting engine, it is advisable to add Cscript before the script name when you run this:cscript SHOWHTTPLogons.vbs EXCH1 EXCH2 EXCH3
The script ignores 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 it, as shown here:
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, a single OWA session can 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).File: showHTTPLogons.zip
Note: You will need to extract the file and rename it with a VBS extension.
3 Comments:
Hello,
Is it available for Front-End servers ?
Thx
Remy
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
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