Solved

Error code zero in PSexec

Posted on 2008-10-28
5
2,044 Views
Last Modified: 2012-05-05
Hi

I am trying to use PSEXEC utility , when i am trying to run the command , it finishes with error code 0
Here is how is run
psexec \\<REMOTE ip>  -U <USERNAME> -p<PASSWORD>  COMMAND
is my syntax wrong
Also do i need admin priviliges on the  remote computer to run this ?
And one of user accounts on the remote computer is IT Dept , will PSEXEC accept usernames with spaces ?

Please advice

Thanks
Binesh


0
Comment
Question by:bineshb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 10

Expert Comment

by:Alan_White
ID: 22824900
Error code 0 from psexec means it has completed sucessfully.
I was confused by this when I started using it too.
If you ask it to run cmd.exe on the remote system you will see that the 0 gets generated when you exit, everything you type while in the CMD shell will work.
 
As for the space in the user id, I dont think psexec will like it.  What you probably have is the display name of the account, there should be a pre-windows 2000 account name for that account too.
 
0
 
LVL 10

Expert Comment

by:Alan_White
ID: 22824936
Sorry, just tested it WILL accept spaces in the username.  I set up a local account on a remote server called IT Dept (and I was wrong about the pre windows 2000 name) and was able to connect using that with psexec.
 
0
 

Author Comment

by:bineshb
ID: 22825403
Alan it seems not to work , also what i find strange is  commands run on the remote computer is not running via psexec . These commands are for a particular application , should i add some parementers ?
0
 
LVL 10

Expert Comment

by:Alan_White
ID: 22825435
The format of the command that I normally use is:
 

PSEXEC \\servername command -U user id -P password

Open in new window

0
 
LVL 10

Accepted Solution

by:
Alan_White earned 250 total points
ID: 22825447
Also, a wealth of information here:
http://forum.sysinternals.com/forum_topics.asp?FID=8
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many times while working on a computer regardless of any Operating System, lag and crashes seem to creep in, hindering your working speed. Sometimes, it can also cause your work to be lost unexpectedly and as a result, you are unable to meet your de…
The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question