Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > script to defragment the HD

Reply
Thread Tools Display Modes

script to defragment the HD

 
 
Jaime
Guest
Posts: n/a

 
      04-09-2009
Hi!!
Where can I find a script to defragment the HD system of variousl computers
on the network and then perform a CHKDSK?.

Thanks

 
Reply With Quote
 
 
 
 
Al Dunbar
Guest
Posts: n/a

 
      04-10-2009

"Jaime" <> wrote in message
news:...
> Hi!!
> Where can I find a script to defragment the HD system of variousl
> computers on the network and then perform a CHKDSK?.


I don't know. You could try writing one - which scripting language are you
wanting to use?

/Al


 
Reply With Quote
 
Umesh Thakur
Guest
Posts: n/a

 
      04-15-2009
you can use Win32_Volume WMI class' methods to perform both defrag and chkdsk
tasks.

Here is a link to Technet ScriptCenter article that talks about
defragmentation and how to perform it using scripts:
http://www.microsoft.com/technet/scr...03/defrag.mspx


I didn't find example for chkdsk but I guess, after reading the above
article about defrag, you would be able to use chkdsk method as well!

cheers.. umesh

--
Umesh

"Old programmers never die. They just terminate and stay resident."



"Al Dunbar" wrote:

>
> "Jaime" <> wrote in message
> news:...
> > Hi!!
> > Where can I find a script to defragment the HD system of variousl
> > computers on the network and then perform a CHKDSK?.

>
> I don't know. You could try writing one - which scripting language are you
> wanting to use?
>
> /Al
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
defragment raymondvillain Windows Vista General Discussion 2 07-08-2007 05:32 PM
Defragment tony Windows Media Center 5 07-30-2005 12:24 AM
Re: how to schedule a disk defragment in script Jeff Cochran Scripting 2 09-20-2004 07:19 PM
Re: how to schedule a disk defragment in script Torgeir Bakken \(MVP\) Scripting 0 09-20-2004 04:21 PM
Defragment Hashem Windows Server 1 07-12-2004 08:17 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59