Home > Error Code > With Error Code 1 Psexec

With Error Code 1 Psexec

Contents

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 This means that using alternate credentials in BatchPatch is no less secure than using integrated security. -Doug Posted 2 years ago # RSS feed for this topic Reply You must log The relocation included 15 clients, one server and misc network equipment. All rights reserved.Newsletter|Contact Us|Privacy Statement|Terms of Use|Trademarks|Site Feedback TechNet Products IT Resources Downloads Training Support Products Windows Windows Server System Center Browser   Office Office 365 Exchange Server   SQL Server http://devstude.net/error-code/with-error-code-0-psexec.php

Join Now trying to run psexec to execute ipconfig /registerdns on a remote machine (Win7). When I try to run the application in the new environment....I get "exited with error code 1" .... Text Quote Post |Replace Attachment Add link Text to display: Where should this link go? Username Password Remember me Search: BatchPatch Forum » BatchPatch Support Forum BAT files Error code: 1 (7 posts) (2 voices) Started 3 years ago by veix Latest reply from doug veix

Psexec Error Codes

I have tried the same code but connecting to another workstation which works fine, it's just when connecting to the server. 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 What is an instant of time? Commands in BAT file executed as separate custom PsExec command 1&2 works.

  1. Say, when they login, run the batch file that runs in cmd in elevated mode? (e.g "cmd /elevated" or something).
  2. Microsoft Customer Support Microsoft Community Forums Home × Check out SpiceWorld Live Stream: See SpiceWorld in Action [Live Now] What is causing pstools error code 1?
  3. 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

explorer exited with error code 1.Explorer launches, does not terminate, but nevertheless returns control to psexec and signals exit code 1.In this particular case I do not think that it makes 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 I have tried the same code but connecting to another workstation which works fine, it's just when connecting to the server. Psexec Cmd.exe Exited On With Error Code 1 Cheers, Dan I assume Code: psexec \\servername simsbac.bat is a typo and that you havent tried the command with out the "\" between server name and file?

LinkBack LinkBack URL About LinkBacks Bookmark & Share Digg this Thread!Add Thread to del.icio.usBookmark in TechnoratiTweet this threadShare on Facebook!Reddit! Psexec Error Code 1 Access Denied IPowershellInvoke-Command -Scriptblock {ipconfig /registerdns} -cred $(Get-Credential) -computer Win7 0 Chipotle OP BigMike77 Apr 2, 2014 at 8:51 UTC hmmm, haven't used psexec with W7.  Maybe it's because of Great product. recommended you read ASP.NET Community Loading...

What commercial flight route requires the most (minimum possible) stops/layovers from A to B? Cmd Exited With Error Code 1 Psexec Not the answer you're looking for? MSDN News Loading... It works fine without psexec with double quotes It works fine with psexec without double quotes!

Psexec Error Code 1 Access Denied

Example: exit Explanation: You will get a "return code 1". Still - it IS the same batch! –RawFocus Jul 23 '14 at 11:15 2 Sorry, you are right. Psexec Error Codes Email Reset Password Cancel Need to recover your Spiceworks IT Desktop password? Psexec Exited With Error Code -1 Curiously it works with the account, I am currently loged in at my workstation.

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. 1 Thai Pepper his comment is here 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 Should the sole user of a *nix system have two accounts? Thanks. Cmd Exited With Error Code

Posted 3 years ago # doug doug Hi veix - 1. It's not extremely important who I run this as, it works with domain's admin account, but was just curious to know why local admin don't work. 0 Ghost Any thoughts any one? http://devstude.net/error-code/with-error-code-3010-psexec.php Also running simsbac.bat on the server localy works fine so it't not the .bat file.

getting the same error message. Psexec Powershell Exited With Error Code 1 Schengen Visa Expiry Date and Date of Return Journey Is the Fortran language still being used in aviation? This is because when you connect to the target computer with integrated security, the target computer then tries to connect to a different network location but doesn't have network access because

If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.Would you like to participate?

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. Yes, alternate credentials are not ideal because they are passed in clear text to the remote computer. 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 Exit Code -1 If I don't pass credentials and instead rely on integrated security, computer A can access computer B, but on computer B there is no network access to connect to computer C.

Here's the command: psexec.exe \\192.168.1.7 -u "mydomain\administrator" -i -c nircmd.exe savescreenshot "c:\shot.png" When I try it I get "CMD exited on (remote PC) with error code 0." I also get this error when What's in Naboo's core, liquid water or plasma? Any more ideas? http://devstude.net/error-code/with-error-code-1603-psexec.php 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.

Haha 0 Thai Pepper OP CrimsonKidA Apr 3, 2014 at 5:53 UTC Matt9169 wrote: as (root) said, it means success. To PsExec a .bat file from the command line you'd have to do the following: psexec \\targetServer -u domain\username -p password cmd.exe /C "\\networkshare\somebatfile.bat" To do the equivalent in BatchPatch, enter Why did my cron job run this month? Alex.

Passwords are NO LONGER sent in clear text, which is very cool. Keep up the good work, Doug! Setting the ERRORLEVEL has no effect. Text Quote Post |Replace Attachment Add link Text to display: Where should this link go?

The same error occurs with any command including cmd. This is expected behavior, due to how impersonation works. SSD Migration Twenty computers, mostly desktops, had hard drives over 4 years old.