The network path was not found.

This topic contains 5 replies, has 3 voices, and was last updated by Profile photo of George Olden George Olden 8 months ago.

  • Author
    Posts
  • #24325
    Profile photo of Hem Thapa
    Hem Thapa
    Participant

    how to solve this problem "Get-EventLog : The network path was not found."

  • #24329
    Profile photo of Don Jones
    Don Jones
    Keymaster

    Well, you would normally start by providing us the complete command that you ran. It's a little difficult to help you troubleshoot something when we can't see what you're doing.

    But, generally, it means the computer name you asked Get-EventLog to connect to was either not found on the network, or did not accept the connection.

  • #24372
    Profile photo of Hem Thapa
    Hem Thapa
    Participant

    Can you retrieve event log of windows 8 from windows server 2012 using Windows PowerShell?

  • #24373
    Profile photo of Hem Thapa
    Hem Thapa
    Participant

    how to enable https listener on windows 8?

  • #40649
    Profile photo of George Olden
    George Olden
    Participant

    I am looking at a similar issue. I can remote to the computer but I cannot run this command. I'd like to run this on multiple computers to get a list of specific errors from the last day.

    Get-EventLog -LogName application -EntryType error -computername front-01 -Newest 20 -Source 'Application Hang'
    Get-EventLog : The network path was not found.
    At line:1 char:1
    + Get-EventLog -LogName application -EntryType error -computername fron ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Get-EventLog], IOException
    + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.GetEventLogCommand
    PS C:\Users\LICN> etsn front-01
    [front-01]: PS C:\Users\licn.BDC\Documents>

  • #40694
    Profile photo of George Olden
    George Olden
    Participant

    Had to use invoke-command,

    $sbscomputers = Get-ADComputer -SearchBase 'OU=SBSComputers,OU=Computers,OU=MyBusiness,DC=bdc,DC=local' -Filter * | Select-Object -ExpandProperty name
    Invoke-Command -ComputerName $sbscomputers -ScriptBlock { Get-EventLog -LogName application -EntryType error -newest 2 -Source 'Application Hang'}

You must be logged in to reply to this topic.