Home > Error Code > Psexec Batch File Error Code 1

Psexec Batch File Error Code 1


Posted 3 years ago # doug doug veix - I'm surprised that you're able to get psexec to work in the way that you specified without having to use cmd.exe /C It takes about 20 seconds to run. The same error occurs with any command including cmd. BUT I must have forgot that on previous version on "Remote script/process" I also used not only "bath_to_bat" but also key "-s". useful reference

How to deal with client's delusion to be a good graphic designer Was the Oceanic flight 815 pilot the only one attacked by the monster? 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). You may get a better answer to your question by starting a new discussion. Something about Nintendo and Game Over Screen What to do with my pre-teen daughter who has been out of control since a severe accident?

Psexec Cmd Exited With Error Code 1

For example: @echo off for /F "delims=" %%a in ("result.log") do ( if "%%a" EQU "success" goto SUCCESS if "%%a" EQU "failure" goto FAILURE ) :FAILURE exit /b -2 Try that version... by LowPro on May 21, 2009 at 6:01 UTC | Questions and Answers 0Spice Down Next: Security Issue with client's PC TECHNOLOGY IN THIS DISCUSSION Join the Community! Isn't alternate credentials a bad thing, since PSExec sends credentials over network as plain text?! 2.

Error can indicate a bug in the executed software that causes stack overflow, leading to abnormal termination of the software.3221225725
-1073741571Stack overflow / exhaustion. Also running simsbac.bat on the server localy works fine so it't not the .bat file. Assume nothing. Psexec Error Code 1 Access Denied Privacy Statement Top All times are GMT -5.

What did it for me was specifying the complete path to test.bat:psexec -u adminacct -p password z:\batch\test.batIt looks like you already specify the path in your batch file, but my little The firewall is off and I am using full admin rights to both the workstation and the server. Text Quote Post |Replace Attachment Add link Text to display: Where should this link go? Half the pentagon!

Indicates that user has no access right to specified resource.9009
0x2331Program is not recognized as an internal or external command, operable program or batch file. Psexec Cmd.exe Exited On With Error Code 1 Mathematics tenure-track committees: Mathjobs question Once you use the exits, you're finally inside me Cant find the game to this melody. current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. HOWEVER, as I suggested in the previous posting, you can use BatchPatch's "Patch Deployment" feature, which will do exactly what you want and will NOT require alternate credentials.

What Is Psexec Error Code 1

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. 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 Psexec Cmd Exited With Error Code 1 Home What is causing pstools error code 1? Psexec Error Codes I created a two-line file test.bat:echo This is a test.pauseWhen I went to the folder of this batch file and simply typed:psexec test.batThat works fine.I tried:psexec -u adminacct -p password test.batI

I have tried the same code but connecting to another workstation which works fine, it's just when connecting to the server. http://spamdestructor.com/error-code/psexec-with-error-code-0.php Why would breathing pure oxygen be a bad idea? It runs fine on peminfo02...Thanks in advanceGausie molotov Members Profile Send Private Message Find Members Posts Add to Buddy List Moderator Group Joined: 04 October 2006 Status: Offline Points: 17526 Post Great product. Psexec Exited With Error Code 1

The same error occurs with any command including cmd. Send PM 23rd June 2010,08:34 PM #6 ravindrani Join Date Jun 2010 Location India Posts 1 Thank Post 0 Thanked 0 Times in 0 Posts Rep Power 0 Try with Passwords are NO LONGER sent in clear text, which is very cool. this page 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.

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) Psexec Error Code 2 Example: exit /b -2 Explanation: exits the batch file, closes the cmd.exe, and sets the return code to zero I write my batch files with GOTO statements that control the exit I'm glad you got it working! -Doug Posted 3 years ago # doug doug Note - PsExec v2.1+ now uses an encrypted channel for communication between the source and destination computers.

keep in mind that it may not be available in the context of the PsExec command.

This scenario does NOT require alternate credentials because there is only a single hop (no double hop as in the first example). Are illegal immigrants more likely to commit crimes? Indicates that the application has been terminated either by user's keyboard input CTRL+C or CTRL+Break or closing command prompt window.3221225794
-1073741502The application failed to initialize properly. Psexec Exit Code -1 The contents of the .bat file are as follows: set FILEPATH=%~1 set BAT_ARCHIVE_IDENTIFIER=%~2 set DEPLOYMENT_ROOT=%~3 echo %FILEPATH% %BAT_ARCHIVE_IDENTIFIER% %DEPLOYMENT_ROOT% batch-file command-line command-line-arguments command-prompt psexec share|improve this question edited Jul 23 '14

Direct Support Forums Technical Windows PSEXEC error code 1 + Post New Thread Results 1 to 6 of 6 Windows Thread, PSEXEC error code 1 in Technical; Hi all, Im trying Home Forum iSpy New Posts Today's Posts Calendar Community Groups Albums Member List Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders Blogs Wiki What's New? It works fine without psexec with double quotes It works fine with psexec without double quotes! Get More Info I'm trying: Code: psexec ...

Story about crystal flowers that stop time? Why is AT&T's stock price declining, during the days that they announced the acquisition of Time Warner inc.? For anyone else reaching this page Here is what the user was trying to do: psexec \\FS1 -u domain\user \\FS1\Z$\folder1\folder2\execute.bat Here are two other options to achieve the same thing: Either move the Doing this will force psexec to ask you for your password and hides it from prying eyes when you type it. 0 This discussion has been inactive for over a year.