defrag job task scheduler

  • Thread starter Thread starter Gunther Schwarz
  • Start date Start date
G

Gunther Schwarz

The log file "schedlgU.txt says:
"defrag.job" (defrag.exe)
Started 8/23/2003 2:23:01 AM
"defrag.job" (defrag.exe)
Finished 8/23/2003 2:23:02 AM
Result: The task completed with an exit code of (2).
[ ***** Most recent entry is above this line ***** ]

No way, a defrag is completed in one sec.
What's wrong?
 
No, never used a password, and didn't ask for one.


Rick "Nutcase" Rogers said:
Hi,

Are you running this job on a passworded account?

--
Best of Luck,

Rick Rogers aka "Nutcase" MS-MVP - Win9x

Associate Expert - WinXP - Expert Zone



Gunther Schwarz said:
The log file "schedlgU.txt says:
"defrag.job" (defrag.exe)
Started 8/23/2003 2:23:01 AM
"defrag.job" (defrag.exe)
Finished 8/23/2003 2:23:02 AM
Result: The task completed with an exit code of (2).
[ ***** Most recent entry is above this line ***** ]

No way, a defrag is completed in one sec.
What's wrong?
 
I think I know the cause. I used the wrong command "defrag.exe", I should
have used "%SystemRoot%\System32\dfrg.msc" instead, looks funny to me,
but that shows up under system tools/defrag/properties.

Gunther Schwarz said:
No, never used a password, and didn't ask for one.


Rick "Nutcase" Rogers said:
Hi,

Are you running this job on a passworded account?

--
Best of Luck,

Rick Rogers aka "Nutcase" MS-MVP - Win9x

Associate Expert - WinXP - Expert Zone



Gunther Schwarz said:
The log file "schedlgU.txt says:
"defrag.job" (defrag.exe)
Started 8/23/2003 2:23:01 AM
"defrag.job" (defrag.exe)
Finished 8/23/2003 2:23:02 AM
Result: The task completed with an exit code of (2).
[ ***** Most recent entry is above this line ***** ]

No way, a defrag is completed in one sec.
What's wrong?
 
Gunther said:
No, never used a password, and didn't ask for one.

To use defrag with scheduler you *must*by default be in an account that
has a password. You can get round this in Pro by going to Admin tools -
Local Security policy and in Local Policies - Security Options, double
click in the right pane on
Accounts: Limit local account use of blank passwords
and set it to Disabled
 
Back
Top