PC Review


Reply
Thread Tools Rate Thread

Defragmenting Hard Drive

 
 
Frank
Guest
Posts: n/a
 
      27th May 2004
I have 1300 workstations in my environment, windows 2000
and windows xp I'm wondering if there is anyway for me to
defrag the hard drives of these workstations either
remotely or by setting a scheduled task. Even if there is
a command line interface or a vbscript that I can execute
that would be great, please advice. thank you.
 
Reply With Quote
 
 
 
 
Mark [MSFT]
Guest
Posts: n/a
 
      27th May 2004
Yes.

http://support.microsoft.com/default...b;en-us;555098

The process is about the same for Windows 2000 as well.

For the CLI, it is defrag.exe.

defrag.exe [Volume] -a -f -v
a: analyze only
f: force defrag (might be a good idea if you have 1300 of these scheduled)
v: verbose
Example: defrag.exe c: -f

--
Mark St. John
This posting is provided "AS IS" with no warranties, and confers no rights.


 
Reply With Quote
 
Greg Hayes/Raxco Software
Guest
Posts: n/a
 
      2nd Jun 2004
While the CLI will work for Windows XP, there is no CLI for defrag for
Windows 2000.

- Greg/Raxco Software
Microsoft MVP - Windows File System

Disclaimer: I work for Raxco Software, the maker of PerfectDisk - a
commercial defrag utility, as a systems engineer in the support department.

Want to email me? Delete ntloader.

"Mark [MSFT]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Yes.
>
> http://support.microsoft.com/default...b;en-us;555098
>
> The process is about the same for Windows 2000 as well.
>
> For the CLI, it is defrag.exe.
>
> defrag.exe [Volume] -a -f -v
> a: analyze only
> f: force defrag (might be a good idea if you have 1300 of these scheduled)
> v: verbose
> Example: defrag.exe c: -f
>
> --
> Mark St. John
> This posting is provided "AS IS" with no warranties, and confers no

rights.
>
>



 
Reply With Quote
 
Greg Hayes/Raxco Software
Guest
Posts: n/a
 
      2nd Jun 2004
Frank,

Using the defrag command line interface in Windows XP, it is possible to
write a script that you can schedule using Task Scheduler. However, pushing
this script out to 1300 systems and remotely telling Task Scheduler to run
on those systems may be a bit of a chore

For your Windows 2000 systems, there is no defrag command line interface.
You could write a VBScript that opens the defrag GUI, sends the appropriate
key strokes to simulate a user defragmenting a drive, wait for completion
and then close the GUI and then schedule that script using Task Scheduler.
Again, it may be a bit of a chore to develop and deploy remotely.

- Greg/Raxco Software
Microsoft MVP - Windows File System

Disclaimer: I work for Raxco Software, the maker of PerfectDisk - a
commercial defrag utility, as a systems engineer in the support department.

Want to email me? Delete ntloader.

"Frank" <(E-Mail Removed)> wrote in message
news:1337601c4439a$07e3a300$(E-Mail Removed)...
> I have 1300 workstations in my environment, windows 2000
> and windows xp I'm wondering if there is anyway for me to
> defrag the hard drives of these workstations either
> remotely or by setting a scheduled task. Even if there is
> a command line interface or a vbscript that I can execute
> that would be great, please advice. thank you.



 
Reply With Quote
 
Frank
Guest
Posts: n/a
 
      2nd Jun 2004
Greg,
Thanks for the response. I didn't think you could
command line defrag. As far as scripting the gui part, is
that something you know for a fact can be done? Or are
you just guessing? If it is something I can do, do you
know where I can find the parameters to put into the
script?

Frank
>-----Original Message-----
>Frank,
>
>Using the defrag command line interface in Windows XP, it

is possible to
>write a script that you can schedule using Task

Scheduler. However, pushing
>this script out to 1300 systems and remotely telling Task

Scheduler to run
>on those systems may be a bit of a chore
>
>For your Windows 2000 systems, there is no defrag command

line interface.
>You could write a VBScript that opens the defrag GUI,

sends the appropriate
>key strokes to simulate a user defragmenting a drive,

wait for completion
>and then close the GUI and then schedule that script

using Task Scheduler.
>Again, it may be a bit of a chore to develop and deploy

remotely.
>
>- Greg/Raxco Software
>Microsoft MVP - Windows File System
>
>Disclaimer: I work for Raxco Software, the maker of

PerfectDisk - a
>commercial defrag utility, as a systems engineer in the

support department.
>
>Want to email me? Delete ntloader.
>
>"Frank" <(E-Mail Removed)> wrote in

message
>news:1337601c4439a$07e3a300$(E-Mail Removed)...
>> I have 1300 workstations in my environment, windows 2000
>> and windows xp I'm wondering if there is anyway for me

to
>> defrag the hard drives of these workstations either
>> remotely or by setting a scheduled task. Even if there

is
>> a command line interface or a vbscript that I can

execute
>> that would be great, please advice. thank you.

>
>
>.
>

 
Reply With Quote
 
Greg Hayes/Raxco Software
Guest
Posts: n/a
 
      11th Jun 2004
Frank,

It definitely can be done. If you do a Google Search in these newsgroups,
you should be able to find some actual code.

- Greg/Raxco Software
Microsoft MVP - Windows File System

Disclaimer: I work for Raxco Software, the maker of PerfectDisk - a
commercial defrag utility, as a systems engineer in the support department.

Want to email me? Delete ntloader.

"Frank" <(E-Mail Removed)> wrote in message
news:175cd01c448f4$2395b390$(E-Mail Removed)...
> Greg,
> Thanks for the response. I didn't think you could
> command line defrag. As far as scripting the gui part, is
> that something you know for a fact can be done? Or are
> you just guessing? If it is something I can do, do you
> know where I can find the parameters to put into the
> script?
>
> Frank
> >-----Original Message-----
> >Frank,
> >
> >Using the defrag command line interface in Windows XP, it

> is possible to
> >write a script that you can schedule using Task

> Scheduler. However, pushing
> >this script out to 1300 systems and remotely telling Task

> Scheduler to run
> >on those systems may be a bit of a chore
> >
> >For your Windows 2000 systems, there is no defrag command

> line interface.
> >You could write a VBScript that opens the defrag GUI,

> sends the appropriate
> >key strokes to simulate a user defragmenting a drive,

> wait for completion
> >and then close the GUI and then schedule that script

> using Task Scheduler.
> >Again, it may be a bit of a chore to develop and deploy

> remotely.
> >
> >- Greg/Raxco Software
> >Microsoft MVP - Windows File System
> >
> >Disclaimer: I work for Raxco Software, the maker of

> PerfectDisk - a
> >commercial defrag utility, as a systems engineer in the

> support department.
> >
> >Want to email me? Delete ntloader.
> >
> >"Frank" <(E-Mail Removed)> wrote in

> message
> >news:1337601c4439a$07e3a300$(E-Mail Removed)...
> >> I have 1300 workstations in my environment, windows 2000
> >> and windows xp I'm wondering if there is anyway for me

> to
> >> defrag the hard drives of these workstations either
> >> remotely or by setting a scheduled task. Even if there

> is
> >> a command line interface or a vbscript that I can

> execute
> >> that would be great, please advice. thank you.

> >
> >
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Defragmenting the hard drive HOME Windows Vista Performance 3 5th Nov 2007 08:42 PM
Defragmenting A Hard Drive D. Spencer Hines Windows XP Customization 12 23rd Feb 2007 12:45 PM
Defragmenting hard drive question Nero Storage Devices 4 24th Jul 2005 02:17 AM
Multitasking while defragmenting the hard drive Kevin Windows XP General 3 2nd Jan 2005 05:53 PM
WinXP shuts down after defragmenting hard drive Marek Koter Windows XP Help 0 10th May 2004 01:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:10 PM.