Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
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

721 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