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
>
>
>