Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-01-08
1
Medium Priority
?
373 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 2000 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

On September 18, Experts Exchange launched the first installment of the Help Bell, a new feature for Premium Members, Team Accounts, and Qualified Experts. The Help Bell will serve as an additional tool to help teams increase question visibility.
Here in this article, you will get a step by step guidance on how to restore an Exchange database to a recovery database. Get a brief on Recovery Database and how it can be used to restore Exchange database in this section!
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Suggested Courses

886 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