Tasklist remote login failure

14,546

Solution 1

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.

Solution 2

This site has some good info. Including a download link for tasklist as it appears that Windows XP Home edition does come with it included.

Windows XP Professional, Vista and 7 come with a powerful command-line tool called Tasklist that provides many details on the programs and processes that are running.

Many will be familiar with the graphical tool Task Manager, which I have discussed elsewhere, and which provides various kinds of information about the applications and processes that are running on a system. There are also several command-line tools that provide similar but even more detailed information. In this article I will discuss the features of the tool called Tasklist (the system file is tasklist.exe). This tool is part of the regular installation of the Professional version of XP but does not come with the Home edition. However, those with the Home version of XP can download Tasklist here. ...

Share:
14,546

Related videos on Youtube

Serodis
Author by

Serodis

Updated on September 18, 2022

Comments

  • Serodis
    Serodis over 1 year

    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.

    • Serodis
      Serodis almost 12 years
      The policy editor does not ship with home versions.
    • ZnArK
      ZnArK almost 12 years
      Your post makes it seem like the problem is logging into the windows 7/XP machines. Do you need help with those? Sounds like it should be the other way around. From your post, I'm not sure where the XP Home Premium fits in.
    • Serodis
      Serodis over 11 years
      Sorry, Home Premium was meant to refer to Windows 7, since XP does not have a 'premium' version.
    • rtf
      rtf over 11 years
      Have you tried logging on using ComputerName\UserName?
  • Serodis
    Serodis over 11 years
    I've went ahead and made some minor adjustments to the post, because I believe you are confusing the issue. First, Windows XP is not the problem machine, the machine I am unable to connect to is Windows 7. I only mentioned Windows XP to explain that its specific to Windows 7 and XP does work. Also, the missing component is the policy editor not tasklist. Windows Vista and Windows 7 Home Premium versions do not have a policy editor.
  • Serodis
    Serodis over 11 years
    Will check more into this comment tomorrow.
  • Serodis
    Serodis over 11 years
    After checking into this, the computer is unable to receive pings, it does show in the network list, but not accessible. Prior to having made some changes (The exact changes I do not remember) it was able to access public shares. Since, these have also disappeared. Current settings: Network discovery: On, File/Print Sharing: On, Public Folders: On, 40 or 56 bit encryption selected, Password protected sharing: Off. (Going to try turning this on tomorrow).Home Group connections: Attempted both methods. Tomorrow I will be trying both disabling the firewall and changing password protected sharing.
  • Serodis
    Serodis over 11 years
    "Cannot connect to remote registry on computer: The network path was not found. This message is displayed with the above settings and firewall disabled. I have attempted password protected sharing on and off and Remote Registry IS enabled and running. The network is accessible (fully) when using password protected sharing. XP will not access anything other than the public folder with passwords off, however.
  • harrymc
    harrymc over 11 years
    One must have passwords on the network or have problems with Windows. Also, XP needs the installation of Link Layer Topology Discovery to fully take part in Vista/7 network. See also this other answer of mine and verify against this Microsoft article. If nothing works, please detail clearly in your post the situation and your tests. For example, I have not understood whether ping now works or not.
  • Serodis
    Serodis over 11 years
    Updated the original question.
  • Serodis
    Serodis over 11 years
    Will update Monday.
  • Serodis
    Serodis over 11 years
    No luck with any of these ideas.
  • harrymc
    harrymc over 11 years
    More ideas: (1) See if tasklist /V gives useful information (2) See if there is some more information in the Event Viewer on XP & 7 (3) Ensure that the Win7 account that created the share has a login password (4) Boot both XP & 7 in Safe Mode With Network and try again.
  • Serodis
    Serodis over 11 years
    Have tried all except safe-mode, will try that within the next couple days.
  • Serodis
    Serodis over 11 years
    Sorry, only have access to Superuser via one computer. It DOES work with safe-mode, but does not work in a normal boot with firewall disabled.
  • harrymc
    harrymc over 11 years
    It is possible in that case that the problem is caused by some installed product. Do you have any antivirus or security suite installed? And which is this the computer with XP or 7?
  • Serodis
    Serodis over 11 years
    The 7PC is the one that was loaded into safe mode and is also the one being accessed by tasklist remotely I will check if anything else may be blocking it
  • Serodis
    Serodis over 11 years
    The only other application I see that may cause problems is Microsoft security essentials but even with turning off real time protection task list will not function
  • Serodis
    Serodis over 11 years
    RemoVed mse disabled firewall and disabled windows defender real time security with no luck
  • harrymc
    harrymc over 11 years
    It might also be a difference in the user account that you used in Safe mode.
  • Serodis
    Serodis over 11 years
    Same user for each