ShowHTTPLogons.vbs EXCH1 EXCH2 EXCH3If 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 EXCH3The 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.csvThe 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).
Note: You will need to extract the file and rename it with a VBS extension.