?
Solved

Scheduled Drive C: Auto defrag for Windows Vista and 7 companywide

Posted on 2010-08-16
9
Medium Priority
?
353 Views
Last Modified: 2012-05-10
Hi All,

Is it possible to make all of the Windows 7 and Vista workstations to auto defrag on scheduled time for the whole company ?

I've deployed powershell into all of my Windows Vista client and some of the Windows XP is it possible for Win XP Pro too ?
0
Comment
Question by:jjoz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 33

Assisted Solution

by:digitap
digitap earned 1000 total points
ID: 33445656
Qualifying whole company indicates something configured via login script.  Scheduled qualifies a scheduled task.  It's possible to create scheduled task via a VB script.  See the links below.  The scheduled task would simply call the defrag command with the respective switches to run on a set time.

http://msdn.microsoft.com/en-us/library/aa394601%28VS.85%29.aspx

http://msdn.microsoft.com/en-us/library/aa394399%28VS.85%29.aspx

http://www.tek-tips.com/viewthread.cfm?qid=1232952&page=1

I'm not familiar enough with powershell to give you direction on that.
0
 
LVL 53

Assisted Solution

by:Will Szymkowski
Will Szymkowski earned 500 total points
ID: 33445714
0
 
LVL 1

Author Comment

by:jjoz
ID: 33445889
thanks for the reply guys, somehow i found out that using batch login script is not preferable since for my Vista and above workstations it didn't work well :-|
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 33

Assisted Solution

by:digitap
digitap earned 1000 total points
ID: 33445934
You don't need to "wrap" the defrag command in the scheduled task within a batch file.  you can put the defrag command as the executable and the scheduled task configurations let you pass command lines to the executable.

However, you could also have the scheduled task call a VB script to perform the defrag:

http://www.billsway.com/vbspage/

Powershell:

http://msdn.microsoft.com/en-us/library/aa389832%28VS.85%29.aspx
0
 
LVL 3

Accepted Solution

by:
gilm0079 earned 500 total points
ID: 33446543
I would check out the WinInternals Defrag Manager 4.0.  

http://support.microsoft.com/kb/935172

I'm not positive where you purchase it now, but I believe I used to use it when it was 3.0 and it worked great.  It has an adminitrator console that you run on your server and remotely defragments your windows computers on schedules even while they are running and have mounted drives.  It kept all of our workstations and servers in good shape as far as performance.  I would give it a try at least.
0
 
LVL 1

Author Comment

by:jjoz
ID: 33450276
@gilm0079: from the link that you gave to me, i cannot see any download link ?
http://www.microsoft.com/windows/enterprise/ --> it seems that it becomes MDOP now and it is not free.
0
 
LVL 1

Author Closing Comment

by:jjoz
ID: 33529970
thanks ma n!!!
0
 
LVL 33

Expert Comment

by:digitap
ID: 33532016
You're welcome.  Glad we could help and thanks for the points!
0
 
LVL 1

Author Comment

by:jjoz
ID: 33532297
no worries man, glad that i can find the answer :-)
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
Microsoft Office 365 is a subscriptions based service which includes services like Exchange Online and Skype for business Online. These services integrate with Microsoft's online version of Active Directory called Azure Active Directory.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question