Solved

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

Posted on 2014-01-08
1
357 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
Read this checklist to learn more about the 15 things you should never include in an email signature.
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

773 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