outlook info from exchange

Home Forums Scripting PowerShell outlook info from exchange

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    hilsoe
    Member
    #164635

    $Loggingpath = ‘C:Program FilesMicrosoftExchange ServerV14LoggingRPC Client Access’
    $LogFiles = Get-ChildItem $Loggingpath|Where-Object {$_.LastWriteTime -ge (Get-Date).AddDays(-180)}
    $TheLogs = $LogFiles | ForEach {Get-Content $_.FullName}| Where-Object {$_ -notlike ‘#*’}
    $ConvertedLogs = $TheLogs |ConvertFrom-Csv -Header date-time,session-id,seq-number,client-name,organization-info,client-software,client-software-version,client-mode,client-ip,server-ip,protocol,application-id,operation,rpc-status,processing-time,operation-specific,failures
    $ConvertedLogs | Where-Object {$_.’client-software’ -eq ‘OUTLOOK.EXE’}|group client-software-version [/CODE] I have the above powershell code to get Outlook info from Exchange, but it dosen’t seem to Work. Help.[CODE]$Loggingpath = ‘C:Program FilesMicrosoftExchange ServerV14LoggingRPC Client Access’
    $LogFiles = Get-ChildItem $Loggingpath|Where-Object {$_.LastWriteTime -ge (Get-Date).AddDays(-180)}
    $TheLogs = $LogFiles | ForEach {Get-Content $_.FullName}| Where-Object {$_ -notlike ‘#*’}
    $ConvertedLogs = $TheLogs |ConvertFrom-Csv -Header date-time,session-id,seq-number,client-name,organization-info,client-software,client-software-version,client-mode,client-ip,server-ip,protocol,application-id,operation,rpc-status,processing-time,operation-specific,failures
    $ConvertedLogs | Where-Object {$_.’client-software’ -eq ‘OUTLOOK.EXE’}|group client-software-version [/CODE] I have the above powershell code to get Outlook info from Exchange, but it dosen’t seem to Work. Help.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.