Solved

Exchange 2010 - Scripting. Log Files, Event Viewer events etc.

Posted on 2014-01-08
1
362 Views
Last Modified: 2014-01-15
Hey Guys,

Hoping you can help here. I need a script that simply copies copies all of the message tracking log files, IIS log files.

From any Exchange Server (without knowing the sevrer names) to a specific location on a machine (to later be analyzed by logparser).

Any ideas? Also this would need to be either a batch script or a powershell script but not a 3rd party application.

Thanks,

Robert
0
Comment
Question by:castellansolutions
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 18

Accepted Solution

by:
irweazelwallis earned 500 total points
ID: 39768294
some simple xcopy/copy commands

i.e.
xcopy \\servername\c$\program files\microsoft\exchagne\v14\TransportRoles\Logs\MessageTracking\*.log c:\logs\server1


if you want to make it more scripted you could working

get-exchagneserver

parse this to an array in powershell to then do the xcopy. I don't have something ready but could try and put something together if the simple xcopy doesn't do the trick


Depending on what you want to achieve out of the logs this might be a ready made bit of powershell that will do it for you. I have used and amended this to do what i wanted and it works a treat.

http://gallery.technet.microsoft.com/scriptcenter/bb94b422-eb9e-4c53-a454-f7da6ddfb5d6
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question