Add Custom View to Event Viewer using powershell

by badpig521 at 2013-05-01 09:33:57

Has anyone ever added a custom view in event viewer using powershell? Right now, I manually add it by importing XML file but I want to automate it with powershell. Any ideas?