Get-WinEvent : Attempted to perform an unauthorized operation.
At line:12 char:13
+ ... $Event=Get-WinEvent -LogName "system" -ComputerName $obj | Where ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-WinEvent], UnauthorizedAccessException
+ FullyQualifiedErrorId : Attempted to perform an unauthorized operation.,Microsoft.PowerShell.Commands.GetWinEventCommand
I wrote a Powershell script. I was looking for something else in eventviewer in our Company.
I modified it so that it is now looking for Administrator in All EventViewers in you AD.
Open in new window