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 )
Angus_08Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.