[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2010-08-16
9
Medium Priority
?
356 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
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
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 editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

649 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