Reputation: 14695
We're moving servers from 2012 to 2016. We have one server that has lots of Custom Views
in the Windows Event Log
that we don't want to lose. This can be easily exported one by one by right clicking and selecting Export Custom View
. The goal however is to import these all on the new server.
I can't seem to find an article explaining how this is done with Powershell
. Creating events
and log names/sources
is not a problem but the Views
is something else
Upvotes: 0
Views: 1360
Reputation: 174465
They're all stored in %ProgramData%
:
Copy-Item -Path "$env:ProgramData\Microsoft\Event Viewer\Views\*" -Recurse -Destination C:\path\to\export\views\to\
Upvotes: 1