Re: Writing Script for ScanDisk and Defrag
- From: "Al Dunbar" <AlanDrub@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 1 Jan 2008 22:20:55 -0700
Running defrag as a scheduled task makes sense; fragementation occurs
naturally on a healthy volume, so there is really no need to know what is
going on with defrag unless it reports a serious disk error. But, as far as
I know, any conditions that CHKDSK might resolve would be better known about
than simply "fixed".
/Al
"Jeffery Hicks [MVP]" <jhicks@xxxxxxxxxx> wrote in message
news:ume6yL%23SIHA.4104@xxxxxxxxxxxxxxxxxxxxxxx
If you have XP and later clients you can use DEFRAG.EXE from the command
line. You can't run it remotely. You might try setting up a scheduled
task to do it. You can do that remotely using SCHTASKS.EXE. You could do
the same thing with CHKDSK.EXE.
--
Jeffery Hicks
Microsoft PowerShell MVP
http://www.scriptinganswers.com
http://www.powershellcommunity.org
Now Available: WSH and VBScript Core: TFM
Coming Soon: Windows PowerShell: TFM 2nd Ed.
"JayBee" <JayBee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:60D55911-5707-4B16-B650-06FE51D6E1DD@xxxxxxxxxxxxxxxx
I need help figuring out a good script to write for running ScanDisk and
Defrag on our network. It would need to be able to run on all the pc's.
Can
I use it in Group Policy? Any suggestions? Thanks in advance.
.
- Follow-Ups:
- Re: Writing Script for ScanDisk and Defrag
- From: JayBee
- Re: Writing Script for ScanDisk and Defrag
- Next by Date: Re: Writing Script for ScanDisk and Defrag
- Next by thread: Re: Writing Script for ScanDisk and Defrag
- Index(es):
Relevant Pages
|