Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Trying to create a powershell script for logs on Multiple computers in a domain

$
0
0

Hi so I currently have a script I have been running to get Application, Backup, and System Logs and convert them into CSV for easy use in importing them into SQL for parsing. 

Currently it only works on a single machine or server. However I was wondering if it is possible to expand the code to it can grab those files from MULTIPLE computers on the domain all from a single script or at least from a single computers batch file.

Example 

Get-WinEvent -logname Microsoft-Windows-Backup | Export-CSV -path C:\Logs\backup.csv

So the end goal would be to get winevent from ComputerA, ComputerB, ComputerC, and Send them all back to ComputerAs log drive, with a name that says which PC they came from.

Any help? Thanks


Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>