Windows Server > Windows Server General Forum Question 0 Sign in to vote Hi, I have been using PSEXEC to run an applicationin my old Windows server 2003 in the past Browse other questions tagged windows-server-2003 pstools or ask your own question. Lastly, be sure that the user which you are using has permission to write directly to c:\, you might have to use a lower directory.Ahh, very important details here! I've verified that the service is in fact starting correctly, that the permissions to the requested program are identical between the working servers and the non-working server, and that psexec works this contact form
Jokes about Monica's haircut Cooking inside a hotel room Teaching a blind student MATLAB programming Half the pentagon! Why do jet engines smoke? The firewall is off and I am using full admin rights to both the workstation and the server. Join them; it only takes a minute: Sign up psexec exited with error code 1 - double quotes up vote 2 down vote favorite Why does the psexec-executed command below fail http://forum.sysinternals.com/error-code-1-when-using-psexec_topic23617.html
Now "Error Code:1" is received. C:\Program Files (x86)\Jenkins\jobs\Run comparison script\workspace>exit 1 Build step 'Execute Windows batch command' marked build as failure Finished: FAILURE` Basically trying to access the batch file on my virtual machine using Psexec Any thoughts any one? Psexec Exit Code -1 net helpmsg 128 gives "There are no child processes to wait for.", so this makes me think it's failing to wait for the child because there isn't one.
Therefore, so long as the credential you pass has the rights, it can do what you ask. Steepest descent/gradient descent as dynamical system How can I Improve gameplay for new players, as a new player? How should I prepare myself for a more supervisory role? check here Would it be ok to eat rice using spoon in front of Westerners?
Differentiation of sine in Fourier domain Would it be ok to eat rice using spoon in front of Westerners? Psexec Powershell Exited With Error Code 1 Join Now I was turned on to pstools and psexec by a fellow spicer. It sounds and looks like it will work great; however, I'm not getting very far. I am currently connected on my desktop with domain\user1 and the psexec-command ends successfully with user1. However, I am hesitant to reboot, since I would really like to determine the cause of the psexec trouble, and right now the psexec process is being used for development purposes,
update if you had more info. –AltF4_ Jul 9 '14 at 7:47 So finally figured out the reasoning why PSEXEC was failing on me (atleast I think so, seeing https://community.spiceworks.com/topic/468800-psexec-issue-cmd-exited-on-remote-pc-with-error-code-0 Curiously it works with the account, I am currently loged in at my workstation. Psexec Error Codes So you could simply drop the psexec part and get the same effect.Running your commandline authenticating as a different user will cause this problem - very likely, extremely likely, certainly:Unless the Cmd Exited With Error Code It's one of those "Error: there is no error" messages.
more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed weblink I hope this helps. -Doug Posted 3 years ago # veix Member Thank you for long explanation, and it did help (if you said you have not changed the code). What's concerning is that when I run the batch file via the cmd, it populates my logs folder with a text file but doing so via Jenkins does not result in However, in a modern switched network environment, this is generally not necessarily all that big of a deal because the network traffic and clear text password will not be exposed to Cmd Exited With Error Code 1 Psexec
You may get a better answer to your question by starting a new discussion. Why don't browser DNS caches mitigate DDOS attacks on DNS providers? asked 2 years ago viewed 10936 times active 2 years ago Blog Stack Overflow Podcast #92 - The Guerilla Guide to Interviewing Linked 25 Convert long filename to short filename (8.3) navigate here Share a link to this question via email, Google+, Twitter, or Facebook.
dlemaster Members Profile Send Private Message Find Members Posts Add to Buddy List Newbie Joined: 20 January 2010 Status: Offline Points: 9 Post Options Post Reply Quotedlemaster Report Post Thanks(0) Psexec Error Code 2 Email Reset Password Cancel Need to recover your Spiceworks IT Desktop password? However I have found that sometimes I have to put the command ie: "nircmd.exe savescreenshot "c:\shot.png"" into a .bat file, copy the file to the remote drive, and then run it
Error code 0xc00000e9   2 Replies Thai Pepper OP J - 159 May 22, 2009 at 8:21 UTC It seems that PSexec is looking for execute.bat on the Will investigate using the different options and see if adding any of them will make a difference. –slizorn Jul 9 '14 at 12:55 | show 1 more comment Your Answer Browse other questions tagged batch-file command-line command-line-arguments command-prompt psexec or ask your own question. Psexec Error Code 0 Also running simsbac.bat on the server localy works fine so it't not the .bat file.
I'm using PSExec (SysInternals PSTools) with NirCMD.exe to attempt to get screenshots. psexec \\ravindranmani -u ravindran -p xxxx Send PM SHARE: + Post New Thread Similar Threads error code is 7 By stu in forum Windows Replies: 5 Last Post: 17th June The point is that the first two give different results depending on whether the parameter is quoted (see blue arrows). his comment is here Try it, and give the credential object the details of your local user and password.
The time now is 09:25 PM. Using %computername% is actually passing your local machine name, not the machine you're trying to run it against. All that said, the BatchPatch code has not changed for the "remote script process" functionality, so I'm unsure how you would have had anything different work in an older version of But Explorer does as instructed.
The firewall is off and I am using full admin rights to both the workstation and the server. Z:\ = \\FS1\LocalDrive$\data\apps Z:\ = \\domain\folder3\apps With that said, one could execute the file by browsing to: Z:\folder1\folder2\execute.bat \\FS1\LocalDrive$\data\apps\folder1\folder2\execute.bat \\domain\folder3\apps\folder1\folder2\execute.bat From WS1 I have tried using the following syntax from CMD: 1. Viewshed Analysis incorporating tree height Interviewee offered code samples from current employer -- should I accept? can you enable WinRM for these servers and execute your cmd shell(s) that way? –HopelessN00b Jun 27 '14 at 18:23 We're exploring other techniques (PowerShell, WinRM, RDP), but in
Additional questions please ask in the sysinternals forum.Best regards Meinolf Weber Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. Creating your account only takes a few minutes. You may get a better answer to your question by starting a new discussion. This scenario does NOT require alternate credentials because there is only a single hop (no double hop as in the first example).