Sorry if this is a stupid question, but I’ve not worked much or anything at all with New-Object and things related to it.
I’m looking for a way to do what is posted here:
But if possible I would like to run it against several servers remotely, instead of running it locally as the post describes.
This would be the code:
$logName = ‘Microsoft-Windows-PrintService/Operational’
$log = New-Object System.Diagnostics.Eventing.Reader.EventLogConfiguration $logName
Most of these server still have PS V2 installed (2008 R2), and some have V4 (2012 R2)
Any assistance or help pointing me towards how I can solve this or where and what I could read to understand how to solve this would be very appreciated.