This week I had to do some powershell scripting on different servers.
There was one server who reacted not in the same order as the other servers.
For example:
Executing the command :
get-eventlog -computername ServerName –list
Returns with the error :
Get-EventLog : The network path was not found.
At line:1 char:13
+ get-eventlog <<<< -computername eurowcs01
+ CategoryInfo : NotSpecified: (:) [Get-EventLog], IOException
+ FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.GetEventLogCommand
Solution:
Enable the service “Remote Registry” on the destination server