Solved

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

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

Are end users causing IT problems again?

You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

Join & Write a Comment

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
A safe way to clean winsxs folder from your windows server 2008 R2 editions
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
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

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now