Home > Error Code > Psexec Reg Exited With Error Code 1

Psexec Reg Exited With Error Code 1


Thread Tools Search Thread Advanced Search 19th June 2009,02:06 PM #1 bladedanny Join Date May 2009 Location Sheffield Posts 1,512 Thank Post 217 Thanked 429 Times in 288 Posts Rep That method was a Microsoft SysInternals tool called psexec which allowed me to bypass whatever security I was having trouble with and run commands on the remote server. I devote a lot of time to this website and the advertising doesn't even cover my hosting charges but it helps a little. The command I'm trying to run is c:\util\psexec\\computername reg.exe import %systemdrive%\scripts\event_log_retention\event-retention.reg. this contact form

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 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) Next I checked the value I'd just set: psexec \\ipaddress -u username -p password reg query "hklm\system\currentcontrolset\control\terminal server" Before I restarted the server: psexec \\ipaddress -u username -p password shutdown -f 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

Psexec Cmd Exited With Error Code 1

Cheers, Dan Send PM 19th June 2009,03:15 PM #2 ChrisH Join Date Jun 2005 Location East Lancs Posts 5,125 Thank Post 165 Thanked 303 Times in 280 Posts Rep Power Additionally, I'm not able to get it to work even WITH the cmd.exe unless I specify the -u and -p switches to pass credentials to the other computer. Patch deployment does not work and does not show any error message.

  • File Server Migration Migrate from single Microsoft Windows 2000 file server to dual Microsoft Windows 2003 File servers.
  • Home What is causing pstools error code 1?
  • Commands in BAT file executed as separate custom PsExec command 1&2 works.
  • Make sure you have permission to administer this computer.
  • Font identification dificulties What is summer in Spanish? "Estío" vs "verano" Hotel cancellation from booking.com What kind of weapons could squirrels use?
  • This is simply a fact of how impersonation works.

BatchPatch Forum is proudly powered by bbPress. 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. Not the answer you're looking for? Psexec Error Code 2 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?

This scenario does NOT require alternate credentials because there is only a single hop (no double hop as in the first example). Psexec Error Codes 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. Executing BAT file from PSExec works. 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.

I have an FTP server I can use but I need to create a new user account and I'm many miles away from the server. Psexec Error Code 1 Access Denied Related Posted in UncategorisedTagged Microsoft Windows Server 2003, Useful Software1 Comment Post navigation Previous PostMicrosoft Virtualization: part 3 (desktop virtualisation)Next PostRecording ringtones for the Apple iPhone One thought on “Using psexec 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? I think I see now, I thought the variable was being expanded in my line c:\util\psexec \\$computer schtasks /create /S $computer /RU "SYSTEM" /SC WEEKLY /ST 12:00 /TN clean_event_log_archives /TR %systemdrive%\scripts\manage-logs_events.bat,

Psexec Error Codes

It looks like you use ad blocking software in your browser. http://www.edugeek.net/forums/windows/37278-psexec-error-code-1-a.html Browse other questions tagged batch-file command-line command-line-arguments command-prompt psexec or ask your own question. Psexec Cmd Exited With Error Code 1 This is expected behavior, due to how impersonation works. What Is Psexec Error Code 1 markwilson.it Cookie Policy By using this website you allow cookies to be placed on your computer.

I have tried multiple domain accounts including the domain administrator.  I have also tried without using "domain\" before the user names. http://caribtechsxm.com/error-code/psexec-net-exited-with-error-code-0.php The time now is 09:22 PM. Is this by design? We've never had to get this advanced in the registry - the most we've done is "regedit" type stuff. Psexec Exited With Error Code -1

I guessthat's what I'll do, but I'm just wondering what is going on here and if there's a way to guess whether something like this will fail or if maybe I Set literal gives different result from set function call Jokes about Monica's haircut How common is the usage of "yous" as a plural of "you"? Email check failed, please try again Sorry, your blog cannot share posts by email. %d bloggers like this: navigate here I tried to connect to the registry remotely and enable Remote Desktop using the method that Daniel Petri describes but that failed: Error connecting network registry Unable to connect to ipaddress.

My suggestion would be to use this: c:\util\psexec \\computername cmd /c reg.exe import %systemdrive%\scripts\event_log_retention\event-retention.reg Regards, Arnoud Marked as answer by notRoman Saturday, June 02, 2012 10:02 PM Saturday, June 02, 2012 Psexec Cmd.exe Exited On With Error Code 1 You can test this by using psexec on that remote machine to echo the %computername% variable. 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.

By creating an account, you're agreeing to our Terms of Use, Privacy Policy and to receive emails from Spiceworks.

Help Desk » Inventory » Monitor » Community » Register Help Remember Me? About Advertising Privacy Terms Help Sitemap × Join millions of IT pros like you Log in to Spiceworks Reset community password Agree to Terms of Service Connect with Or Sign up 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 Psexec Error Code 1073741502 LinkBack LinkBack URL About LinkBacks Bookmark & Share Digg this Thread!Add Thread to del.icio.usBookmark in TechnoratiTweet this threadShare on Facebook!Reddit!

You'll need to specify alternate credentials for this work. Now "Error Code:1" is received. My Windows Live SkyDrive and Mesh accounts have 5MB limits (and there is no Mac client for Mesh for a point to point connection). his comment is here All rights reserved.

Isn't alternate credentials a bad thing, since PSExec sends credentials over network as plain text?! 2. The new system effectively modernized the company. IPowershellInvoke-Command -Scriptblock {ipconfig /registerdns} -cred $(Get-Credential) -computer Win7 The problem is not what means I use to get command pushed out, but the local Admin's credentials that don't work when they current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list.

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. Thank you! Skip to content markwilson.it get-info -class technology | write-output > /dev/web Using psexec to make registry changes on a remote computer Posted on Monday 6 October 2008Tuesday 7 October 2008 by It works fine without psexec with double quotes It works fine with psexec without double quotes!

Send PM 19th June 2009,03:39 PM #4 BJG Join Date May 2008 Location Norwich Posts 491 Thank Post 106 Thanked 46 Times in 27 Posts Rep Power 28 See if Posted 3 years ago # doug doug Interesting. I have tried the same code but connecting to another workstation which works fine, it's just when connecting to the server. 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 Resources

I guess that is a little different than what I came up with. TECHNOLOGY IN THIS DISCUSSION Join the Community! We must be having very different network environments (different share permissions, user permissions, windows policys), since to me psexec has always worked like that. I was reading where i shouldn't. –MC ND Jul 23 '14 at 11:33 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote accepted psexec -u user