• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1121
  • Last Modified:

psexec.exe Help Not Working With Computer Name

Hello Everyone ive got a Problem I need to Use psexec.exe i set it up on another computer before works a treat
so i put it in  this xp machine that has just been reformated no firewalls no antivirus running yet  windows firewall is off. I can ping, share files between computers even comands like net use works with Xray machine name  but  everytime i try ( psexec  \\Xray cmd ) or  ( psexec  \\Xray -d -i -u Edward -p xxxxx cmd) Its no go access denied.. but when i use {psexec \\192.168.1.2 -d -i -u Edward -p xxxxx cmd} it works like it suposse to any idears why it dose not with the machine name ???  (the ips change a lot i need machine name too work with this psexec )
0
Angus_08
Asked:
Angus_08
  • 13
  • 7
1 Solution
 
y_dubCommented:
I think psexec uses port 445

If you have a port scanner you should see if the machines are open on port 445.

If you don't have a port scanner you could try this;


C:\>net view \\xray

I think you will get this:

System error 5 has occurred.

Access is denied.
0
 
Angus_08Author Commented:
Ok Tried that Let me no what u think
C:\Documents and Settings\Smithy>net view \\Xray
Shared resources at \\Xray



Share name  Type  Used as  Comment

-----------------------------------------------------------------------
Round       Disk  (UNC)
SharedDocs  Disk  (UNC)
The command completed successfully.
0
 
y_dubCommented:
My error, I think the net command uses a different port.


Could you try
to telnet  port 445 on the machine and see if you get a similar error message to the one below.

C:\>telnet 10.10.10.40 445
Connecting To 10.10.10.40...Could not open connection to the host, on port 445:
Connect failed



0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Angus_08Author Commented:
Ok Tried That no Go

Connecting To xxx.xx x.x.x:445...Could not open connection to the host, on port
3: Connect failed

0
 
Angus_08Author Commented:
I can ping it though
0
 
Angus_08Author Commented:
Is There Anyone There
0
 
y_dubCommented:
Sorry for the delay.

Do a netstat on your pc xray to see if the port is listening


netstat -an
 TCP    0.0.0.0:445            0.0.0.0:0              LISTENING

0
 
Angus_08Author Commented:
C:\Documents and Settings\Edward>netstat -an

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
  TCP    127.0.0.1:1025         0.0.0.0:0              LISTENING
  TCP    192.168.1.2:139        0.0.0.0:0              LISTENING
  UDP    0.0.0.0:445            *:*
  UDP    0.0.0.0:500            *:*

there was more but i took off because of  ips cheers for all your help help mate
0
 
y_dubCommented:
You should use a port scanner to check which ports are open.

Download Advanced port scanner from this site:
http://www.radmin.com/download/index.php

See if port 445 is categorized as "open"
0
 
Angus_08Author Commented:
ok done that 139 open n 445 open on both cowboy n xray
0
 
y_dubCommented:
Ok so what is the error message when you do
psexec  \\Xray cmd

is it
The network path was not found.
or is it
Access is denied.
?
0
 
Angus_08Author Commented:

C:\>psexec \\Xray cmd

PsExec v1.97 - Execute processes remotely
Copyright (C) 2001-2009 Mark Russinovich
Sysinternals - www.sysinternals.com

Couldn't access Xray:
Access is denied.

C:\>pause
Press any key to continue . . .

0
 
y_dubCommented:

Please give me the error messages for this two commands:

psexec  \\Xray  -u Edward -p xxxxx cmd
psexec \\192.168.1.2 -u Edward -p xxxxx cmd

0
 
Angus_08Author Commented:
psexec  \\Xray  -u Edward -p xxxxx cmd

PsExec v1.97 - Execute processes remotely
Copyright (C) 2001-2009 Mark Russinovich
Sysinternals - www.sysinternals.com

Couldn't access Xray:
Access is denied.

C:\>pause
Press any key to continue . . .

psexec \\192.168.1.2 -u Edward -p xxxxx cmd

PsExec v1.97 - Execute processes remotely
Copyright (C) 2001-2009 Mark Russinovich
Sysinternals - www.sysinternals.com

Couldn't access 192.168.1.2:
Access is denied.

C:\>pause
Press any key to continue . . .




0
 
Angus_08Author Commented:
They both not working im so lost here
0
 
Angus_08Author Commented:

C:\>psexec \\192.168.1.2 -d -i -u Edward -p xxxxx cmd

PsExec v1.97 - Execute processes remotely
Copyright (C) 2001-2009 Mark Russinovich
Sysinternals - www.sysinternals.com


cmd started on 192.168.1.2 with process ID 984.

C:\>pause
Press any key to continue . . .

0
 
Angus_08Author Commented:
ok that worked but not by xray
0
 
y_dubCommented:
Ok, I'll have to leave now. It's ok that you close this tread without any point to me.
I suggest you start a new thread where you present the topic with the full error messages. I'm sure some wiz with some google knowledge would be able to help you :)
0
 
Angus_08Author Commented:
Thanks For Your Help Very Greatly appreciated
0
 
Angus_08Author Commented:
It Was a driver issue something u said made me thing that thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 13
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now