Link to home
Create AccountLog in
Avatar of Line One
Line One

asked on

windows 7 scheduled backup task

I have a Windows 7 system that has a mapped drive to a folder on an XP VM on a 2008 server.  I created a robocopy batch file that runs on the Windows 7 computer and copies the contents of the mapped drive letter to a local folder. When I run the batch file by itself it works without a hitch - copy is done and log file created showing what has been copied. As a user with admin privileges - actually the only user in the system apart from guest - I created a scheduled task with Windows 7 task scheduler to run the job on a daily basis but it never ran - it would give an operational code of 2 as a result which I could not find much information on. I subsequently deleted the task and recreated it - again as the user with administrator privileges. The task still does not run but now I have an additional issue - even though I created the task when I go to view history I am told 'the user account does not have permission to view task history on this computer'.  Again there is only one account on this computer apart from guest and it has admin privileges. For example,  let's say my account is called Simon. When I go to Manage Accounts there are only two accounts showing - one says 'Simon/Administrator/Password Protected' and the other says 'Guest - account is off.'  So I can create and edit the task but then can't view its history????

Any assistance is appreciated in advance.
Avatar of Dhananjay
Dhananjay
Flag of India image

Change the password of the user and recreated it.
You have incorrect username and password set in the Scheduled Tasks.

Refer the below link
http://support.microsoft.com/kb/178691
Avatar of Line One
Line One

ASKER

Thanks for the quick response. I will give it a try and let you know how it worked out.
The article specifically says it doesn't apply to Windows 7. Also there is nothing about changing the password.  And the two conditions referred to:

The path to the program file is incorrect.
You specified a command-line switch for the program file, and you typed the program file's path and command-line switch within quotation marks (for example, "c:\windows\calc.exe /d").

Don't apply in my case.
http://technet.microsoft.com/en-us/library/cc766266.aspx

The above applies to running a scheduled task on a remote computer. Not what I am doing.
++++++++++++++++++++++
http://windows.microsoft.com/en-IN/windows7/schedule-a-task#

I have already done all the above steps.

I don't believe you are reading my question carefully as you would not have supplied any of the 3  links you did if you had read my detailed question.  Sending me three inappropriate links has just wasted my time.

I would appreciate it if you would let me Request Attention and the moderators will then get me somebody who understands the situation and through their experience can direct me in this matter - in other words connect me with someone  who is an expert in this area.
Avatar of Jackie Man
Can you export your task and upload it to EE forum?
SOLUTION
Avatar of Chris B
Chris B
Flag of Australia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Folks,

Thanks for the feedback. I seem to have resolved the issue by making the administrator account owner of the various folders that the scheduled tasks are related to.

The paths were already UNC names in the batch file.  

As far as " make sure you have set "run with highest privileges"  - what exactly would I do to do that?
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Thanks.