Zip event logs files and move to other location

Here is the link for the script I am using zip event logs files and move to other location (Version 1.0).

The script is wrote in powershell.

It is can be run from command line like schedule task: “C:WindowsSystem32WindowsPowerShellv1.0powershell.exe -command”

Download the Script and rename the suffix from .txt to .ps1

On the first section you need to feel relevant data for your needs and you servers to check (change the brackets to relevant data, NO NEED BRACKETS!!!):

$ComputerName = (“Server1″,”Server2″,”Server3″,”Server4”)
$Syslogs = “[File location to move to…]”
$Path2003 = “c$WINDOWSsystem32config”
$Path2008 = “c$WINDOWSSystem32WinevtLogs”
$sender = “Script@[domain].com”
$subject1 = “Archive Security Event Log”
$smtpsrv = “[SMTPSERVER]”
$Recepionist = “xxx@[domain].com”
$filter1 = “Archive*.evt”
$Source = “Archive-Security”
$Dest = “sec”

I will be glade to get suggestions…

Thanks

Tal

7 thoughts on “Zip event logs files and move to other location”

  1. Thanks for everything that you have potesd on the site!This stuff takes me back to some really long weekends spending hours in line at the Coconut Teazer, then going to the Palomino club after for dancing until Sunday afternoon!!! I believe the clubs were No Doz and Sketch Pad, but the mind forgets things like that sometimes!Good times .

  2. What’s Happening i am new to this, I stumbled upon this I have discovered It absolutely useful and it has helped me out loads. I’m hoping to contribute & aid different users like its aided me. Great job.|

  3. Hey! This is kind of off topic but I need some advice from an established blog. Is it very difficult to set up your own blog? I’m not very techincal but I can figure things out pretty fast. I’m thinking about making my own but I’m not sure where to start. Do you have any points or suggestions? Many thanks|

  4. Thanks for sharing your thoughts. I truly appreciate your efforts and I will be waiting for your next post thanks once again.|

  5. It’s very easy to find out any topic on net
    as compared to textbooks, as I found this article at this website.

  6. This is the perfect site for anyone who really wants to understand this
    topic. You understand a whole lot its almost hard to argue with you (not that
    I personally will need to…HaHa). You definitely put a brand new spin on a topic that has been discussed
    for ages. Great stuff, just great!

Leave a Reply

Your email address will not be published. Required fields are marked *