Ok,
i can use this:
| Quote: |  | |
| | Quote: |  | | |
>> get-eventlog system | Format-List | out-file -encoding ASCII -filepath foobar.txt
| | | | | | |
| | |
to dump all system-related informations in my text file
and i can use this:
| Quote: |  | |
| | Quote: |  | | |
>> get-eventlog -list |%{$_.clear()}
| | | | | | |
| | |
to delete the event logs completly
Now regarding the filename:
--
i.e.
i would like to end with files like that:
* 20080415_hostname_logtype.txt (execution_date + hostname + here:
system
Best regards
fidel