Home > Error Code > Psexec Exited With Error Code 1

Psexec Exited With Error Code 1

Contents

With psexec it works as psexec -s \\targetserver \\networksshare\somebatfile.bat My user just has to have administrative permissions on targetserver and read access to \\networkshahe. If I use Remote script/process then no output is read from nowhere and BAT is not executed. Executing BAT file from PSExec works. Use task manager or Process Explorer in order to find out the sessionID, please.HTH,SvenBomwollen SvenBomwollen Members Profile Send Private Message Find Members Posts Add to Buddy List Senior Member Joined: 29 http://caribtechsxm.com/error-code/psexec-reg-exited-with-error-code-1.php

What kind of weapons could squirrels use? Are there any historically significant examples? I am using BatchPatch version 2012.12.10 and psexec version 1.92. Creating your account only takes a few minutes. navigate here

Psexec Error Codes

Marked as answer by Yuan WangMicrosoft employee, Moderator Monday, July 11, 2011 1:37 PM Monday, June 06, 2011 9:08 AM Reply | Quote 0 Sign in to vote Hi , I have tried multiple domain accounts including the domain administrator.  I have also tried without using "domain\" before the user names. If the anser is anything newer than Win XP SP3, then you may have to add the psexec option -i sessionID to your commandline, where sessionID will have to be replaced The same error occurs with any command including cmd.

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! You can test this by using psexec on that remote machine to echo the %computername% variable. more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Psexec Error Code 1 Access Denied But, still it did not work...

Setting the ERRORLEVEL has no effect. What Is Psexec Error Code 1 The firewall is off and I am using full admin rights to both the workstation and the server. 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 BatchPatch will reach out to the network share and get the .bat file, and then BatchPatch will copy that .bat file to the target computer and execute it.

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 1073741502 vBulletin Security provided by vBSecurity v2.1.0 Patch Level 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.Copyright EduGeek.netDigital Point modules: Sphinx-based search Follow EduGeek via James Should two DFAs be complete before making an intersection of them? 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

What Is Psexec Error Code 1

Email Reset Password Cancel Need to recover your Spiceworks IT Desktop password? https://community.spiceworks.com/topic/38467-what-is-causing-pstools-error-code-1 had anybody used PSEXEC on Windows 2008 server ???do we need to use latest version of PSEXEC in Windows 2008 ????? Psexec Error Codes 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 Cmd Exited With Error Code 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).

Join the community Back I agree Powerful tools you need, all for free. weblink 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. Isn't alternate credentials a bad thing, since PSExec sends credentials over network as plain text?! 2. This is why the commandline fails and you will see no Explorer window.Hm, as a matter of fact, here under Windows 7, even running it all as myself yields exit code Exited With Error Code 1 Pssh

Any idead Friday, June 03, 2011 9:20 AM Reply | Quote Answers 0 Sign in to vote Hello, make sure that you use an elevated command prompt or run it with Something about Nintendo and Game Over Screen Why didn't Dave Lister go home? I would dig out some older version, but newer ones has this neat feature where you could browse computers from AD by specific OU. navigate here 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?

Share a link to this question via email, Google+, Twitter, or Facebook. Psexec Error Code 2 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 windows-server-2003 pstools share|improve this question asked Jun 27 '14 at 18:14 laindir 1064 1 Not a fix, per se, but a workaround possibility...

MSDN News Loading...

  1. The command looks like: psexec.exe -u domain\user2 -ppwd explorer /select,\\server1\c$\ and returns an error code 1.
  2. Command runs only if domain/admin account is used.
  3. LinkBack LinkBack URL About LinkBacks Bookmark & Share Digg this Thread!Add Thread to del.icio.usBookmark in TechnoratiTweet this threadShare on Facebook!Reddit!
  4. I hope this helps. -Doug Posted 3 years ago # veix Member Hello, Thank you for reply. 1.
  5. The only confirmed solution I've seen to this is rebooting the machine.

Register Help Remember Me? psexec -u myself -p mypwd explorer.exe /e,/root,/select,\\server1\C$\Kind regards,SvenBomwollen Edited by SvenBomwollen - 06 August 2010 at 1:10pm Post Reply Tweet Forum Jump -- Select Forum -- Autoruns BgInfo Disk2vhd Both users are member in the local admin group of server1. Cmd Exited With Error Code 1 Psexec No.

Why do units (from physics) behave like numbers? I am currently connected on my desktop with domain\user1 and the psexec-command ends successfully with user1. What I need is for domain\user to be able to execute Z:\folder1\folder2\execute.bat.  I need this to be executed from a remote system (WS1), but need it to run on the server (FS1). his comment is here Keep in mind that on Windows server 2008 and higher OS UAC is activated by default and requires that you use an elevated command prompt for multiple operations.

By creating an account, you're agreeing to our Terms of Use and our Privacy Policy Not a member? And I should have remembered before. By creating an account, you're agreeing to our Terms of Use, Privacy Policy and to receive emails from Spiceworks. Running your commandline authenticating as yourself will not cause any problems, because your Explorer will be activated by yourself.

Ipconfig /registerdns must be run in elevated mode.