how will I find no. of users connecting through OWA or using owa, irrespective of mailbox features being enabled.
Exchange* OWA
Last Comment
pramod1
8/22/2022 - Mon
Rajul Raj
With Log Parser Studio, you can create a custom query to check on the number of OWA users per minute from the IIS logs on your CAS. The query should look similar to the following:
Select cs-username AS UserID,QUANTIZE(TO_TIMESTAMP(date, time), 60) AS Minute, cs(User-Agent) AS Application from '[LOGFILEPATH]' WHERE cs-uri-stem LIKE '%OWA%'
Hopefully this will work for Exchange 2007...regardless, you need to start planning to migrate from Exch2007 to Exch2013 or Exch2016 as 2007 is almost at end of life.
# Create new DataTable to hold log entries
$tblLog = New-Object System.Data.DataTable "Log"
$arrUsers = New-Object System.Collections.ArrayList($null)
$bFirstRun = $TRUE;
foreach ($file in Get-ChildItem $path)
{
# Get the contents of the file, excluding the first three lines.
$fileContents = Get-Content $file.FullName | where {$_ -notLike "#[D,S-V]*" }
# Create DataTable columns. No handling for different columns in
# each log file.
if( $bFirstRun )
{
$columns = (($fileContents[0].TrimEnd()) -replace "#Fields: ", "" -replace "-","" -replace "\(","" -replace "\)","").Split(" ")
$colCount = $columns.Length
# Create a DataColumn from the column string and add to our DataTable.
foreach ($column in $columns)
{
$colNew = New-Object System.Data.DataColumn $column, ([string])
$tblLog.Columns.Add( $colNew )
}
$bFirstRun = $FALSE;
Write-Host "Columns complete"
}
# Get the row contents from the file, filtering what I want to retrieve.
$rows = $fileContents | where {$_ -like "*/owa/Default.aspx*"}
# Loop through rows in the log file.
foreach ($row in $rows)
{
if(!$row)
{
continue
}
SELECT TOP 200 cs-username AS UserID,
cs(User-Agent) AS Application,
cs-uri-stem AS Vdir,
c-ip AS CLIENT,
cs-method,
Count(*)
FROM '[LOGFILEPATH]'
WHERE cs-uri-stem LIKE '%OWA%'
GROUP BY UserID, Application, Vdir, Client, cs-method
ORDER BY COUNT(*) DESC
pramod1
ASKER
i see LPSV2LIBRARY.XML file should i take out everything just leave the one u mentioned and run
Open in new window