Announcement

Collapse
No announcement yet.

outlook info from exchange

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • outlook info from exchange

    Code:
    $Loggingpath = 'C:\Program Files\Microsoft\Exchange Server\V14\Logging\RPC 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
    I have the above powershell code to get Outlook info from Exchange, but it dosen't seem to Work. Help.

  • #2
    Re: outlook info from exchange

    Are you getting an error?
    What information are you trying to obtain?
    Regards,
    Jeremy

    Network Consultant/Engineer
    Baltimore - Washington area and beyond
    www.gma-cpa.com

    Comment


    • #3
      Re: outlook info from exchange

      Presumably you have checked out each line as a separate step? If so, where do the problems start

      And how doesn't it work - error? wrong result? no result?

      Give us a clue so we can try to help a bit
      Tom Jones
      MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
      PhD, MSc, FIAP, MIITT
      IT Trainer / Consultant
      Ossian Ltd
      Scotland

      ** Remember to give credit where credit is due and leave reputation points where appropriate **

      Comment


      • #4
        Re: outlook info from exchange

        I am just running the script, but get nothing. No output.

        Comment


        • #5
          Re: outlook info from exchange

          Try running it line by line and looking at the value of variables
          So run the first line then (on its own) $Loggingpath and confirm the correct path is read in, then run the second line and look at $logfiles

          Basically build up the script step by step until you get to the point where things go wrong

          Presumably if you inspect the logs manually, you will find "OUTLOOK.EXE" somewhere in them?
          Tom Jones
          MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
          PhD, MSc, FIAP, MIITT
          IT Trainer / Consultant
          Ossian Ltd
          Scotland

          ** Remember to give credit where credit is due and leave reputation points where appropriate **

          Comment


          • #6
            Re: outlook info from exchange

            I have tried running it in Exchange management Shell and only gets 2 lines of output, that dosen't seem right.

            Comment


            • #7
              Re: outlook info from exchange

              Are you getting no output or some output?
              Have you tried the line by line approach?

              are you sure there is data in the logs that will display - sometimes no result is correct

              Can you post what you actually get when you run the script - full screen shot
              Tom Jones
              MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
              PhD, MSc, FIAP, MIITT
              IT Trainer / Consultant
              Ossian Ltd
              Scotland

              ** Remember to give credit where credit is due and leave reputation points where appropriate **

              Comment


              • #8
                Re: outlook info from exchange

                ok, so,

                do you have log files at $loggingpath?
                do they match the date filter?
                are they csv-style logs ?
                Is there a string within the logfile that matches outlook.exe ?
                Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

                Comment


                • #9
                  Re: outlook info from exchange

                  It seems the it is not possible to collect Outlook version there are connected to the exchanger server so I will stop trying.

                  Comment


                  • #10
                    Re: outlook info from exchange

                    It's definitely possible to retreive this information

                    Get-MailboxServer | Get-LogonStatistics | Select UserName,ClientVersion,LastAccessTime,ServerName

                    http://msexchangeguru.com/2012/10/08...ient-versions/
                    Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

                    Comment

                    Working...
                    X