Schedule Help

  • Thread starter Thread starter DrJoel
  • Start date Start date
D

DrJoel

I'm trying to set up a Schedule for Defrag to run at certain times. When
ever I try to create the task it asks for a password. Where do i get
this password, or better yet where do I set it up? Thanks.
 
DrJoel,

Type the user account password.

How To Schedule Tasks in Windows XP:
http://support.microsoft.com/?kbid=308569

Task Scheduler Does Not Run Tasks When "Run As" User Account Has No Password
http://support.microsoft.com/?kbid=311119

“0x80070005: Access is denied" error message when you create a scheduled
task in Windows XP Service Pack 2 or Windows XP Tablet PC Edition 2005:
http://support.microsoft.com/?kbid=884573

Troubleshoot Scheduled Tasks in Windows XP
http://support.microsoft.com/?kbid=308558

--
Ramesh, Microsoft MVP
Windows XP Shell/User

Windows XP Troubleshooting
http://www.winhelponline.com
 
"Where do i get this password..."
From an Administrator.

"...or better yet where do I set it up?"
Open the Help and Support Center and read the article entitled: To create a
user password
 
Ted said:
"Where do i get this password..."
From an Administrator.

"...or better yet where do I set it up?"
Open the Help and Support Center and read the article entitled: To create a
user password
OK I got the password to work, but what command do I use for Drive
defrag to run and where is it in the windows folder. I found defrag in
windows/system 32, but that doesn't work.
 
Use the -f switch to force a defrag.

--
Ramesh, Microsoft MVP
Windows XP Shell/User

Windows XP Troubleshooting
http://www.winhelponline.com


DrJoel said:
After following the directions in the above post I right clicked on the
schedule and here is what happened. Is this actually working in the
background?


--------------------------------------------------------------------------------
 
Yes, that's correct.

Try that command from Start/Run if you want. BTW, if you want to know if
task scheduler executes it successfully, then inspect the Task Scheduler
log.

--
Ramesh, Microsoft MVP
Windows XP Shell/User

Windows XP Troubleshooting
http://www.winhelponline.com
 
Ramesh said:
Yes, that's correct.



Try that command from Start/Run if you want. BTW, if you want to know if
task scheduler executes it successfully, then inspect the Task Scheduler
log.
OK I checked, what does the exit code in the log mean? I have (1) and (0)
 
Did the Task run?
Exit code 0 is Success.

Task Scheduler Does Not Run Tasks When "Run As" User Account Has No Password
http://support.microsoft.com/?kbid=311119

“0x80070005: Access is denied" error message when you create a scheduled
task in Windows XP Service Pack 2 or Windows XP Tablet PC Edition 2005:
http://support.microsoft.com/?kbid=884573

Troubleshoot Scheduled Tasks in Windows XP
http://support.microsoft.com/?kbid=308558

--
Ramesh, Microsoft MVP
Windows XP Shell/User

Windows XP Troubleshooting
http://www.winhelponline.com
 
Ramesh said:
Did the Task run?
Exit code 0 is Success.

Task Scheduler Does Not Run Tasks When "Run As" User Account Has No
Password
http://support.microsoft.com/?kbid=311119

“0x80070005: Access is denied" error message when you create a scheduled
task in Windows XP Service Pack 2 or Windows XP Tablet PC Edition 2005:
http://support.microsoft.com/?kbid=884573

Troubleshoot Scheduled Tasks in Windows XP
http://support.microsoft.com/?kbid=308558
I think it did, but I wish there was a way to see the visual screen to
see the progress of defrag, or an ending message saying defrag complete.
Is that possible?
 
I think there is something wrong with your configuration of the task. Double
check if you've included the parameters correctly.

Alternately, try this:

Open Notepad and type the following

defrag.exe c: -f

Save the file as "c:\defrag.bat" include the double-quotes.

Then, schedule defrag.bat using Task Scheduler.

--
Ramesh, Microsoft MVP
Windows XP Shell/User

Windows XP Troubleshooting
http://www.winhelponline.com
 
That's how it works. Defrag is in progress, give it some time to complete.

--
Ramesh, Microsoft MVP
Windows XP Shell/User

Windows XP Troubleshooting
http://www.winhelponline.com


DrJoel said:
Here is the result when running the bat file. Is this correct? I still
don't see any progress, or is that how it works?


--------------------------------------------------------------------------------
 
Yes, you'll see something like this once completed:

=====================================================
Windows Disk Defragmenter
Copyright (c) 2001 Microsoft Corp. and Executive Software International,
Inc.

Analysis Report
3.90 GB Total, 3.04 GB (77%) Free, 0% Fragmented (0% file
fragmentation)

Defragmentation Report
3.90 GB Total, 3.04 GB (77%) Free, 0% Fragmented (0% file
fragmentation)

C:\>
=====================================================

--
Ramesh, Microsoft MVP
Windows XP Shell/User

Windows XP Troubleshooting
http://www.winhelponline.com
 
Ramesh said:
Yes, you'll see something like this once completed:

=====================================================
Windows Disk Defragmenter
Copyright (c) 2001 Microsoft Corp. and Executive Software International,
Inc.

Analysis Report
3.90 GB Total, 3.04 GB (77%) Free, 0% Fragmented (0% file
fragmentation)

Defragmentation Report
3.90 GB Total, 3.04 GB (77%) Free, 0% Fragmented (0% file
fragmentation)

C:\>
=====================================================
Thank you for all the help and hand holding.

Joel
 

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

Back
Top