Search code examples
windowsauthenticationcmdtasklist

Batch command tasklist for remote computer


i'm trying to use tasklist command in cmd.exe for list all processes on my remote Windows 10 PC (which is in my home and connected on the same network as my main computer). But when I type in cmd.exe from my main computer tasklist /s <his IP> /u Lucas /p <Lucas's password> it shows me Error : Incorrect user or password but user Lucas is the local admin for this remote PC and I'm 100% sure it's the right password, I really don't understand.

I have tried to disable firewall for private network, without success. I have tried to add an exception in the firewall for port 135 (TCP), without success. Ping command works fine.

I hope you can help me.

Regards.


Solution

  • Solved my problem by doing powershell Invoke-Command -ComputerName <ip of the remote computer> -Credential <his_name>\PC_Guest -ScriptBlock {Get-Process} with <his_name> the name of the remote PC. For the explanations PC_Guest was the old name of the admin account that I renamed to Lucas and I think that when we rename administrators accounts, Windows not change completely the name in permissions system, so that is why I had Access Denied or Unknown user or password errors with user Lucas. Thanks @lit for your answer.