- Scheduling a defrag
- Posted by Graham on October 11th, 2005
Hi. I am trying to set up a scheduled defrag through administrator. I add a
scheduled task and browse for `defrag.exe' and add. When the task starts i
get a brief flash of a dos screen and no defrag. Any ideas ??
- Posted by Nepatsfan on October 11th, 2005
Graham wrote:
> Hi. I am trying to set up a scheduled defrag through
> administrator. I add a scheduled task and browse for
> `defrag.exe' and add. When the task starts i get a brief
> flash of a dos screen and no defrag. Any ideas ??
You might want to take a look at this article:
Schedule a Task to Defragment Drives
http://www.microsoft.com/windowsxp/u...s/gehrke1.mspx
I'm guessing that you left out the part about adding the drive
letter as detailed in step six.
If you have multiple partitions or hard drives on your system,
you can use this script as a scheduled task:
Defrag All Hard Drives
http://www.dougknox.com/utility/scri...defrag_all.htm
Good luck
Nepatsfan
- Posted by Graham on October 12th, 2005
I tried what it said in the article. In the run window it
said`C:|WINDOWS|System32|defrag.exe\C' . Is this correct ?
I also got a window box stating` An error has occured while attempting to
set task account information. Specific error is 0x80070005:Access is denied.
You do not have permission to perform the required operation'. I am using
administrator.
"Nepatsfan" wrote:
> Graham wrote:
> > Hi. I am trying to set up a scheduled defrag through
> > administrator. I add a scheduled task and browse for
> > `defrag.exe' and add. When the task starts i get a brief
> > flash of a dos screen and no defrag. Any ideas ??
>
> You might want to take a look at this article:
>
> Schedule a Task to Defragment Drives
> http://www.microsoft.com/windowsxp/u...s/gehrke1.mspx
>
> I'm guessing that you left out the part about adding the drive
> letter as detailed in step six.
>
> If you have multiple partitions or hard drives on your system,
> you can use this script as a scheduled task:
>
> Defrag All Hard Drives
> http://www.dougknox.com/utility/scri...defrag_all.htm
>
> Good luck
>
> Nepatsfan
>
>
>
- Posted by Nepatsfan on October 13th, 2005
First off, make sure there's a space between defrag.exe and C:
It should look like this:
C:\Windows\System32\defrag.exe C:
Here's another Microsoft article that you might want to take a
look at:
How to Automate Disk Defragmenter Using Task Scheduler Tool in
Windows XP
http://support.microsoft.com/default...b;en-us;555098
Next, the error message you're getting is due to the fact that
you're trying to schedule a task to run under an account that
does not have a password. Take a look here for more info:
Scheduled Tasks cannot run with a blank password
http://support.microsoft.com/default...b;en-us;310715
There is a workaround. Scroll down to "Scheduled Tasks -
Applying/Running tasks without a password" on this web page:
http://www.kellys-korner-xp.com/xp_s.htm
Keep in mind that using this workaround weakens the security on
your system. Adding a password to your account is the correct
approach to solve this problem.
Good luck
Nepatsfan
Graham wrote:
> I tried what it said in the article. In the run window it
> said`C:|WINDOWS|System32|defrag.exe\C' . Is this correct ?
> I also got a window box stating` An error has occured while
> attempting to set task account information. Specific error
> is 0x80070005:Access is denied. You do not have permission
> to perform the required operation'. I am using administrator.
>
>
> "Nepatsfan" wrote:
>
>> Graham wrote:
>>> Hi. I am trying to set up a scheduled defrag through
>>> administrator. I add a scheduled task and browse for
>>> `defrag.exe' and add. When the task starts i get a brief
>>> flash of a dos screen and no defrag. Any ideas ??
>>
>> You might want to take a look at this article:
>>
>> Schedule a Task to Defragment Drives
>> http://www.microsoft.com/windowsxp/u...s/gehrke1.mspx
>>
>> I'm guessing that you left out the part about adding the
>> drive letter as detailed in step six.
>>
>> If you have multiple partitions or hard drives on your
>> system, you can use this script as a scheduled task:
>>
>> Defrag All Hard Drives
>> http://www.dougknox.com/utility/scri...defrag_all.htm
>>
>> Good luck
>>
>> Nepatsfan
- Posted by Graham on October 14th, 2005
Thanks very much. I re-wrote the path but still got the error and no defrag.
Went to article on password. Seems as you say that because i didn't have
password on account it would not execute. Now ok. Once again many thanks
Graham.
"Nepatsfan" wrote:
> First off, make sure there's a space between defrag.exe and C:
> It should look like this:
>
> C:\Windows\System32\defrag.exe C:
>
> Here's another Microsoft article that you might want to take a
> look at:
>
> How to Automate Disk Defragmenter Using Task Scheduler Tool in
> Windows XP
> http://support.microsoft.com/default...b;en-us;555098
>
> Next, the error message you're getting is due to the fact that
> you're trying to schedule a task to run under an account that
> does not have a password. Take a look here for more info:
>
> Scheduled Tasks cannot run with a blank password
> http://support.microsoft.com/default...b;en-us;310715
>
> There is a workaround. Scroll down to "Scheduled Tasks -
> Applying/Running tasks without a password" on this web page:
>
> http://www.kellys-korner-xp.com/xp_s.htm
>
> Keep in mind that using this workaround weakens the security on
> your system. Adding a password to your account is the correct
> approach to solve this problem.
>
> Good luck
>
> Nepatsfan
>
> Graham wrote:
> > I tried what it said in the article. In the run window it
> > said`C:|WINDOWS|System32|defrag.exe\C' . Is this correct ?
> > I also got a window box stating` An error has occured while
> > attempting to set task account information. Specific error
> > is 0x80070005:Access is denied. You do not have permission
> > to perform the required operation'. I am using administrator.
> >
> >
> > "Nepatsfan" wrote:
> >
> >> Graham wrote:
> >>> Hi. I am trying to set up a scheduled defrag through
> >>> administrator. I add a scheduled task and browse for
> >>> `defrag.exe' and add. When the task starts i get a brief
> >>> flash of a dos screen and no defrag. Any ideas ??
> >>
> >> You might want to take a look at this article:
> >>
> >> Schedule a Task to Defragment Drives
> >> http://www.microsoft.com/windowsxp/u...s/gehrke1.mspx
> >>
> >> I'm guessing that you left out the part about adding the
> >> drive letter as detailed in step six.
> >>
> >> If you have multiple partitions or hard drives on your
> >> system, you can use this script as a scheduled task:
> >>
> >> Defrag All Hard Drives
> >> http://www.dougknox.com/utility/scri...defrag_all.htm
> >>
> >> Good luck
> >>
> >> Nepatsfan
>
>
>
>
>
>
>
>
- Posted by Nepatsfan on October 14th, 2005
You're welcome. Glad to see you got it running OK.
Nepatsfan
Graham wrote:
> Thanks very much. I re-wrote the path but still got the
> error and no defrag. Went to article on password. Seems as
> you say that because i didn't have password on account it
> would not execute. Now ok. Once again many thanks Graham.
>
>
> "Nepatsfan" wrote:
>
>> First off, make sure there's a space between defrag.exe and
>> C: It should look like this:
>>
>> C:\Windows\System32\defrag.exe C:
>>
>> Here's another Microsoft article that you might want to
>> take a look at:
>>
>> How to Automate Disk Defragmenter Using Task Scheduler Tool
>> in Windows XP
>> http://support.microsoft.com/default...b;en-us;555098
>>
>> Next, the error message you're getting is due to the fact
>> that you're trying to schedule a task to run under an
>> account that does not have a password. Take a look here for
>> more info:
>>
>> Scheduled Tasks cannot run with a blank password
>> http://support.microsoft.com/default...b;en-us;310715
>>
>> There is a workaround. Scroll down to "Scheduled Tasks -
>> Applying/Running tasks without a password" on this web page:
>>
>> http://www.kellys-korner-xp.com/xp_s.htm
>>
>> Keep in mind that using this workaround weakens the
>> security on your system. Adding a password to your account
>> is the correct approach to solve this problem.
>>
>> Good luck
>>
>> Nepatsfan
>>
>> Graham wrote:
>>> I tried what it said in the article. In the run window it
>>> said`C:|WINDOWS|System32|defrag.exe\C' . Is this correct ?
>>> I also got a window box stating` An error has occured while
>>> attempting to set task account information. Specific error
>>> is 0x80070005:Access is denied. You do not have permission
>>> to perform the required operation'. I am using
>>> administrator.
>>>
>>>
>>> "Nepatsfan" wrote:
>>>
>>>> Graham wrote:
>>>>> Hi. I am trying to set up a scheduled defrag through
>>>>> administrator. I add a scheduled task and browse for
>>>>> `defrag.exe' and add. When the task starts i get a brief
>>>>> flash of a dos screen and no defrag. Any ideas ??
>>>>
>>>> You might want to take a look at this article:
>>>>
>>>> Schedule a Task to Defragment Drives
>>>> http://www.microsoft.com/windowsxp/u...s/gehrke1.mspx
>>>>
>>>> I'm guessing that you left out the part about adding the
>>>> drive letter as detailed in step six.
>>>>
>>>> If you have multiple partitions or hard drives on your
>>>> system, you can use this script as a scheduled task:
>>>>
>>>> Defrag All Hard Drives
>>>> http://www.dougknox.com/utility/scri...defrag_all.htm
>>>>
>>>> Good luck
>>>>
>>>> Nepatsfan