Windows – Tasklist remote login failure

task-managerwindowswindows 7windows-vista

Edit: Rewrote question to include updates and full current status.

I am attempting to connect a Windows XP (client) to a Windows 7 (Server) using tasklist. Currently, I have had no luck with this, tasklist gives the following error:

ERROR: Logon failure: unknown user name or bad password.

Command: tasklist /S PCName /U user /P password

The same error occurs when attempting to exchange user for any of the following:

workgroup\User, Workgroup\PC\User, PC\User

It is however finding the computer. If you attempt to connect using a computer that does not exist, the following error occurs instead:

ERROR: The RPC server is unavailable.

When attempting the same goal using PSList, as listed in comments below, the error is always the same:

The network path was not found. Failed to take process snapshot on
Computer. Make sure that the Remote Registry service is running on the
remote system, that you have firewall ports allow RPC access , and your
account has read access the following key on the remote system:
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Perflib

The following settings exist on the Windows 7 machine:

  • Discovery: On
  • File/Print Sharing: On
  • Turn on sharing so anyone with network access can read and write files in the Public folders.
  • Enable file sharing for devices that use 40- or 56-bit encryption.
  • Password Protected Sharing: Tried both on and off.
  • HomeGroup Connections: Tried both.

Additional information:

  • The Windows XP PC is able to access the Windows 7 machine via ping.
  • The Windows XP PC is able to access the Windows 7 public user folder.
  • An attempt to share another folder failed, Windows XP responded with:
    "…not accessible. You might not have permission to use this network resource…"

    • File permissions were set to full for 'Everyone.'
  • Link Layer Topology Discovery Responder is up-to-date on the XP machine.
  • I have the Remote Registry Service started and running.
  • I have enabled all RPC ports as well as even attempted disabling the firewall.
  • Works with safe-mode

Hopefully this helps give more insight into the problem.

Best Answer

I suggest first that you turn off all firewalls on the network and try tasklist again.

If tasklist still fails, it may be fixable even without the policy editor, by using registry editing to execute directly the same changes as would have been done by the policy editor, but this is risky and complicated.

Try using instead the free and equivalent PsList utility of Mark Russinovich.

If PsList will also fail, this will give us some additional information about the problem : Whether it is only the problem of tasklist or a general network access problem.

If nothing works, it would help to know if you can login via the network to the problematic computers by using the specified user-names and passwords.