Sysinternals Homepage
Forum Home Forum Home > Sysinternals Utilities > PsTools
  New Posts New Posts RSS Feed - Psexec returning error code 0
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Psexec returning error code 0

 Post Reply Post Reply
Author
Message
shilyas View Drop Down
Newbie
Newbie


Joined: 16 May 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote shilyas Quote  Post ReplyReply Direct Link To This Post Topic: Psexec returning error code 0
    Posted: 16 May 2009 at 3:56am
Local Machine : Windows XP Profession version 2002, service pack 3
Target machine: Windows 2003 R2 Standard Edition Service pack 2

Psexec v1.95

Error code 0 appears when executing the following command.




C:\WINDOWS\system32>psexec \\2.75.221.2 ipconfig

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


ipconfig exited on 2.75.221.2 with error code 0.

C:\WINDOWS\system32>


Any idea to fix this and get Psexec working?

Thanks

Back to Top
JimCharles View Drop Down
Groupie
Groupie


Joined: 19 March 2009
Status: Offline
Points: 48
Post Options Post Options   Thanks (0) Thanks(0)   Quote JimCharles Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 2009 at 12:39am
Hi,
Error Code 0 means The operation completed successfully.
Jim Charles
Back to Top
shilyas View Drop Down
Newbie
Newbie


Joined: 16 May 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote shilyas Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 2009 at 1:31am
Thanks, Charles.
 
But then the output of the command is expected to be displayed, e.g if the command we used is ipconfig then we should see that info of the remote machine, but that is not happening. Is there something I am missing here.
 
 
Back to Top
SvenBomwollen View Drop Down
Senior Member
Senior Member


Joined: 29 August 2008
Location: Germany
Status: Offline
Points: 1630
Post Options Post Options   Thanks (0) Thanks(0)   Quote SvenBomwollen Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 2009 at 1:44am
Hello, shilyas.

Sorry to say so, but psexec v1.95 is buggy. It fixed one problem which it had not even caused itself (cf. PSExec is ignoring -i after kb956572 is installed.), but broke more basic functionality instead. Dead

Cf. Problem with psexec 1.95 and Psexec and piping batch reults.

Related to your problem, psexec eats the screen output of a remote console command, cf. this post:
Quote Using psexec v1.94 the script works fine here and returns all the java messages just fine.
Using psexec v1.95 the script did not return the output of "java -version" in most cases. I assume this problem is related to the bug reported here: Problem with psexec 1.95.

Kind regards,
SvenBomwollen

Back to Top
shilyas View Drop Down
Newbie
Newbie


Joined: 16 May 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote shilyas Quote  Post ReplyReply Direct Link To This Post Posted: 18 May 2009 at 5:52pm
Thanks a lot for the info.
 
So, in summary, the current version 1.95 of psexec is broken and not working, right?
 
Shuaib
Back to Top
SvenBomwollen View Drop Down
Senior Member
Senior Member


Joined: 29 August 2008
Location: Germany
Status: Offline
Points: 1630
Post Options Post Options   Thanks (0) Thanks(0)   Quote SvenBomwollen Quote  Post ReplyReply Direct Link To This Post Posted: 18 May 2009 at 10:56pm
Hello, Shuaib.

It does not work as correctly as v1.94 on those Windows versions which I use most: Windows 2003 Std SP2 (32/64bit) and Windows Prof SP2, 32bit.
I cannot give any statement on how psexec v1.95 behaves on Vista, Server 2008 and Windows 7, though.

Kind regards,
SvenBomwollen
Back to Top
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Status: Offline
Points: 17516
Post Options Post Options   Thanks (0) Thanks(0)   Quote molotov Quote  Post ReplyReply Direct Link To This Post Posted: 01 July 2009 at 11:23pm
Daily affirmation:
net helpmsg 4006
Back to Top
Stephen010367 View Drop Down
Newbie
Newbie
Avatar

Joined: 16 April 2014
Location: Mississippi
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Stephen010367 Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2014 at 3:54pm
Change your default scripting engine from cscript to wscript and your output will display. -> wscript //H:Wscript
Always search...
Back to Top
michaelmexes View Drop Down
Newbie
Newbie
Avatar

Joined: 24 April 2014
Location: Singapore
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote michaelmexes Quote  Post ReplyReply Direct Link To This Post Posted: 24 April 2014 at 6:39am
Anyone please help me!

I want to execute the bat file from my PC to my other PC. But I got some error please advise me.

psexec  \\10.87.41.58 -u @user -p @password -s "C:\Wallpaper\Wallpaper.bat" 

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



The operation completed successfully

The operation completed successfully

Error:  The system was unable to find the specified registry key or value

The operation completed successfully
C:\Wallpaper\Wallpaper.bat exited on 10.87.41.58 with error code 0.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down