scheduled task

G

Guest

I am trying to schedule a regular defrag for my home computer. Task
Schedulaer won't run it for me, though. I keep getting the following error
message,

"The new task has been created but may not run because the account
information could not be set. The specific error is 0x80070005: Access is
denied. Try using task page Browse button to locate the application."

I have full access to my own home computer. I don't have any passwords set.
I already used the scheduler browse button to locate the application:
dfrg.msc. How can I schedule a regular defrag?

TIA,
Richard Silver
 
G

Guest

I forgot to explain that I am logged on as Administrator and I also tried
using defrag.exe.
 
D

Dave Patrick

Scheduled Tasks require an account with a non-blank password also Scheduled
Tasks|Advanced|View Log may provide some details.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I am trying to schedule a regular defrag for my home computer. Task
| Schedulaer won't run it for me, though. I keep getting the following error
| message,
|
| "The new task has been created but may not run because the account
| information could not be set. The specific error is 0x80070005: Access is
| denied. Try using task page Browse button to locate the application."
|
| I have full access to my own home computer. I don't have any passwords
set.
| I already used the scheduler browse button to locate the application:
| dfrg.msc. How can I schedule a regular defrag?
|
| TIA,
| Richard Silver
 
N

Nepatsfan

Windows XP, by default, will not run tasks scheduled with a local
user account that does not have a password:

http://support.microsoft.com/default.aspx?scid=kb;en-us;311119

You either have to add a password to your account or use the
following workaround:

Run regedit.
Navigate to the following key:
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa
In the right hand pane, right click on limitblankpassworduse and
select modify.
Change the Value data to 0.
Close the registry editor.

Also, running dfrg.msc as your scheduled task will only bring up
the Disk Defragmenter utility. You have to use the command line
version, defrag.exe. Take a look here for more details:

http://www.microsoft.com/windowsxp/using/setup/learnmore/tips/gehrke1.mspx
 
B

Bert Kinney

Hi Richard,

I believe you will have to create a logon password for that account
before it will work.

Tweakui can be used at this point to automatically logon.
Microsoft PowerToys - Tweakui for WinXP: Ver. 2.10 requires WinXP SP1
and later
http://www.microsoft.com/WINDOWSXP/home/downloads/powertoys.asp

With NO Service Packs installed, the earlier version can be found
here:
http://download.microsoft.com/download/whistler/Install/2/WXP/EN-US/TweakUiPowertoySetup.exe

TweakUI can be accessed from Start - All Programs - Powertoys for
Windows XP

Click on Logon and then enter the User name you want to automatically
logon.

Here a script you may find useful.
Defragment All Hard Drives
http://www.dougknox.com/utility/scripts_desc/defrag_all.htm
 
G

Guest

GREAT!!!!!!!!!!!

Half way there.......

I finally, by following your registry change, got CLEANDISK to activate at
the appointed time. But ... one problem..........

How do I get it to continue ... rather than just simply activating and
showing the default drive?????????
Thanks
 
N

Nepatsfan

First off, it you want to ask a question, start a new thread.
Don't hijack someone elses. You've posted to a response I gave
over two months ago. I don't track messages that are that old.
If I hadn't seen my earlier response quoted, I probably would
never have made the connection.

As for your question, take a look at these articles:

Automate Disk Cleanup using Task Scheduler in Windows XP
http://windowsxp.mvps.org/Automate.htm

How to Automate the Disk Cleanup Tool in Windows XP
http://support.microsoft.com/default.aspx?scid=KB;en-us;315246

What it basically comes down to is you use the /sageset:n
switch to define the items you want your scheduled Disk Cleanup
to include. You then use the /sagerun:n switch when you create
your sheduled running of cleanmgr.

Post back if you run into any problems setting this up.

Nepatsfan
 
G

Guest

Would like to begin by stating that I really appreciate the time you took to
respond. I will review those references and put them into process.

Now, about your other comments. It is not forbidden to connect to a thread
that is only a couple of months old. Couple of years ... that's another
situation.

In fact, to do as I have done is suggested throughout thread 'manners'. To
not, or in other words, to clutter up the internet for repetitive same
subject matters, is not in accordance with proper manners.

But......... once again, appreciate your reply.
doon
 
N

Nepatsfan

Answered inline:
Would like to begin by stating that I really appreciate the
time you took to respond. I will review those references
and put them into process.

Now, about your other comments. It is not forbidden to
connect to a thread that is only a couple of months old.
Couple of years ... that's another situation.

OK, fair enough. But consider what the results of that course
of action will be. When you ask your question in an old thread
you've significantly reduced the chances that you're question
will be answered. Why? Because most of the people who provide
answers in these newsgroups will never see it. Even if they do
see it, they may simply ignore it thinking it is a response to
the old thread, not a new question. The reality is that a
thread that is even two weeks old, never mind two months, is
considered ancient history.
In fact, to do as I have done is suggested throughout thread
'manners'. To not, or in other words, to clutter up the
internet for repetitive same subject matters, is not in
accordance with proper manners.

It's not a matter of "proper manners" or "cluttering up the
internet". It's a matter of practicality. You want your
question viewed by the widest possible audience.

Your original problem consisted of two very different issues:
Issue 1. Running a scheduled task with an account that has a
blank password.
Issue 2. Running Disk Cleanup without user intervention.

Issue 1 was covered in the old thread. As you said
"GREAT!!!!!!!!!!!" "Half way there......."
Issue 2 is the other half. It would have been in your best
interest to post it as a new question. That way it would have
shown up on the top of the list instead of buried behind two
months of messages.
But......... once again, appreciate your reply.
doon

You're welcome. And if after reading those articles I mentioned
earlier, you're still having problems running Disk Cleanup,
post back to this thread and we'll see what we can do.

Nepatsfan

 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top