Hi all,
I am working on a Powershell Script, to extract event logs to a txt file, csv file or even a html page,
although i have a few problems, and i am new to powershell and need to understand some basics aswell.
Requirements -
To exract event id's from multiple servers which read servers from a text file, although how should you list the servers in a text file, the format?
and can someone help me save a log file to a location on the c drive
i have got as far as this below -
Get-eventlog system -newest 30 ¦ where-object {$_.eventid =eq 7036}
this was just trying out powershell which worked but i have tried so many commands and I have not got anywhere.
if anyone can help and have a script i would be most grateful and guide me to get this up and running. thanks in advance
I am working on a Powershell Script, to extract event logs to a txt file, csv file or even a html page,
although i have a few problems, and i am new to powershell and need to understand some basics aswell.
Requirements -
To exract event id's from multiple servers which read servers from a text file, although how should you list the servers in a text file, the format?
and can someone help me save a log file to a location on the c drive
i have got as far as this below -
Get-eventlog system -newest 30 ¦ where-object {$_.eventid =eq 7036}
this was just trying out powershell which worked but i have tried so many commands and I have not got anywhere.
if anyone can help and have a script i would be most grateful and guide me to get this up and running. thanks in advance