0x1 Task Scheduler Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring
0x1 Task Scheduler Error Windows 7
developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask scheduled task ox1 Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join scheduled task 0x1 powershell them; it only takes a minute: Sign up Windows Scheduled task succeeds but returns result 0x1 up vote 3 down vote favorite I have a scheduled task on a Windows 2008 R2 server. The task includes a Start In
Scheduled Task Result 0x0
directory entry. The task runs, and the batch file it runs does what it is supposed to do. When I run the batch file from a command prompt, I see no errors. The problem is that the "Last run result" is 0x1 (incorrect function call). I did get this at one time with an incorrect DOS statement IF EXISTS file.txt DO (Copy file.txt file1.txt) that was corrected by dropping the DO statement. The current batch file does not show
Task Scheduler Result Codes
me any errors or warnings. Why am I getting a 0x1 result? Batch file that is run: PUSHD \\JUKEBOX4\Archives\CallRecording REM only move csv and wma together. wma should be created last. IF NOT EXIST C:\CallRecording (MKDIR C:\CallRecording) FOR /f %%f IN ('DIR /b *.wma') DO ( IF EXIST %%~nf.csv (MOVE /Y %%~nf.* C:\CallRecording\) ) POPD CD /D "C:\Program Files (x86)\Olim, LLC\Collybus DR Upload" CollybusUpload.exe POPD Info on scheduled task setup: Program to run: C:\Program Files (x86)\Olim, LLC\Collybus DR Upload\CallRecordingUploadFromH.cmd Start in: C:\Program Files (x86)\Olim, LLC\Collybus DR Upload Run whether user is logged on or not, highest privileges. History screen, task completed entry "Task Scheduler successfully completed task "\Call recording upload to portal from NH" , instance "{1449ad42-2210-427a-bd69-2c15e35340e6}" , action "C:\Windows\SYSTEM32\cmd.exe" with return code 1." First screen of Task Scheduler shows "Run Result" of "Success" scheduled-tasks share|improve this question edited Jul 21 at 15:22 Michael 1,52911629 asked Aug 22 '13 at 2:05 user241099 39125 add a comment| 5 Answers 5 active oldest votes up vote 4 down vote It seems many users are having issues with this. Here are some fixes: Right click on your task > "Properties" > "Actions" > "Edit" | Put ONLY the file name under 'Program/Script', no quotes and ONLY the directory under 'Start in' as described, again no quotes. Right click on your task > "Properties" > "General" | Test with any/all of the following: "Run with highest privileges" (test
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack 0x1 in c Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack
Last Run Result 0x1 Meaning
Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Task Scheduler error scheduled task 0x2 0X1 How can I solve this? up vote 0 down vote favorite 1 I write a bat file to copy .zip to another location. The file copy from localhost to another pc.(the disc is defined as R) I wrote this commands: @echo off http://stackoverflow.com/questions/18370547/windows-scheduled-task-succeeds-but-returns-result-0x1 move /Y "C:\xx\yy.zip" R:\xx cd /D R:\xx\ For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c%%a%%b) For /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a%%b) ren "yy.zip" "yy%mydate%_%mytime%.zip" The problem is in the task scheduler is I set folder location,and select bat file, and ** I set run whether user log on or not** and select high privileges then it gives 0X1 error. But if I deselect whether user log on or not tick it works. But I need to tick http://stackoverflow.com/questions/27144137/task-scheduler-error-0x1-how-can-i-solve-this it How can I solve this? thanks in advance windows batch-file scheduled-tasks windows-server-2008 share|improve this question edited Nov 26 '14 at 8:30 asked Nov 26 '14 at 8:14 Ersin Gülbahar 2,43073163 1 I think the problem is that you only have the rights to write to the remote drive when a user is logged in that also has ther rights to do so. You should try to add the COMPUTER you are running your scheduled task on to the trusted list of the machine you want to copy your files to. –MichaelS Nov 26 '14 at 9:18 ok I wil try thanks –Ersin Gülbahar Nov 26 '14 at 9:24 1 Just to make sure what I mean by "trusted": add the machine with the scheduled task to the administrator group of the remote pc. I'm pretty sure this should work. –MichaelS Nov 26 '14 at 9:35 ok thanks it works –Ersin Gülbahar Nov 26 '14 at 10:01 I'm glad I was able to help. I'll move the comments to "Answer" :) –MichaelS Nov 26 '14 at 10:02 | show 1 more comment 1 Answer 1 active oldest votes up vote 2 down vote accepted I think the problem is that you only have the rights to write to the remote drive when a user is logged in that also has ther rights to do so. You should add the machine with the scheduled task to the administrator group of the remote pc. share|improve this answer answered Nov 26
Free SFTP, SCP and FTP client for Windows News Introduction SSH Client SFTP Client FTP Client Download Install Donate Documentation Guides F.A.Q. Scripting .NET & COM Library Screenshots Translations Support Forum https://winscp.net/forum/viewtopic.php?t=13581 Tracker History Topic "Windows Server Task Scheduler gives 0x1 as Last Run Result" [Reply to topic] [Log in] [Forum Index] [Forum "Support and Bug Reports"] [Previous topic] [Next topic] Author Message riceric [View user's profile] Joined: 2014-02-19 Posts: 4 Location: United States Posted: 2014-02-28 01:26 Windows Server Task Scheduler gives 0x1 as Last Run Result scheduled task [Reply with quote] I am having a similar problem, and the FAQ below did not seem to help. http://winscp.net/eng/docs/faq_scheduler I am running Windows Server 2008 R2; The latest version of WinSCP 5.5.1; The task scheduler is running the script from an account with full admin rights; I wrote a batch script to use WinSCP to connect 0x1 task scheduler to an FTP server, copy some files, and then exit. (This used to work for several months until recently...not sure what changed...possible an update to WinSCP). After the local files are uploaded to the FTP server, the batch file copies them to a backup directory. The task scheduler still appears to run all the batch commands, because the backup directory is always updated. However, the FTP is failing. I turned on logging from the WinSCP client (and script) to try and capture the problem, but I only get a log file when running the batch script--not the task scheduler. I also configured WinSCP to use the .INI file. === Here is a sample log from a batch file session (run manually): Code: . 2014-02-18 17:18:27.219 -------------------------------------------------------------------------- . 2014-02-18 17:18:27.219 WinSCP Version 5.5.1 (Build 3970) (OS 6.1.7601 Service Pack 1 - Windows Server 2008 R2 Standard) . 2014-02-18 17:18:27.219 Configuration: C:\Program Files (x86)\WinSCP\WinSCP.ini . 2014-02-18 17:18:27.219 Local account: admin . 2014-02-18 17:18:27.219 Working directory: C:\LocalDir . 2