Network path errors (path not found) in Windows 7 machines running Powershell.
I have been trying to run a basic powershell command to clear event logs on a remote computer, I was not sure whether to post this in the powershell section but it works in every other OS except Windows 7 and a couple of Vista flavours. On Windows 7 Enterprise and Professional (Vista Business 64bit and Vista Enterprise 32bit) and running a command similar to: Clear-EventLog -Logname Application -Computername 192.168.x.x The command is successful on my Windows 7 Ultimate machines (and other Vista versions other than what I mentioned), but none of the others. The error is "The path to the "192.168.x.x" computer cannot be found". I have googled around for a few days now trying to find out why, all machines including the ultimate ones that work are on the same subnet, they can all ping to each other, firewall is disabled, remote connections are enabled, no anti-virus is running. If I locally go on the machine I can not run the Clear-EventLog command and run the Clear-EventLog command I entered before with its own IP, it still gives the same error. That is partially why I am not entirely sure if it is a networking error, but from all my research something must be conflicting as they try to execute the commands remotely. All the psremoting services are running and such, I have added the machines I am trying to run the commands on to trusted hosts and such, but I am at a complete loss. I would like to add all the machines are virtual, have tried both other virtual machines as well as a physical machine to act as a client. All machines are running powershell 2.0 (or in Windows 7's case, whatever is the default)
June 8th, 2010 4:03pm

You may replace the 192.168.x.x with a real computer name and check the result.Arthur Xie - MSFT
Free Windows Admin Tool Kit Click here and download it now
June 9th, 2010 11:32am

I've tried with real computer names, they only work locally. So if I run Clear-EventLog -Logname Application -Computername Win7Entx32 while actually on the Windows 7 Enterprise 32 bit machine, it works, but if I put the machine's own IP instead of Win7Entx32 it fails. If I put in any other computer on the network's computername, it also fails.
June 9th, 2010 7:38pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics