How to write a script to run defrag?
-
OK, I am new at a lot of this and one of my first projects is to work on making sure all 60 workstations at work are defraged monthly. I have never wrote a script for anything, but heard I can write a script to automatically run defrag on all the work stations. I know i can set defrag to run in task scheduler but i dont want to have to go to each workstation to do this if I dont have to. We have active directory at work and there are group policies. My question is how do I write a script to run defrag automatically without the user being logged in and me having to set it up on each workstation?
-
Answer:
If you're not sure, go with a commercial defrag utility such as Diskeeper that can be managed from a central console. You can administer defrag for all the networked PCs from that administer console, set defrag options, get reports etc as well automate the whole process..you won't even have to set the schedules if you don't want. It's not free, but the time savings and results are worth it. Whatever script you write/implement, ensure that you test it thoroughly on a small number of machines before unleashing it on the entire network..bringing down 60 workstations and resulting in a loss of production won't make you very popular at your workplace (commercial utilities exist exactly to overcome these issues).
valerie m at Yahoo! Answers Visit the source
Other answers
1) Windows or *nix? 2) Who determined that all the drives need to be defragged every month? (Whoever it is needs to start with Computers 101 and work up to the complex things - like pressing a key. Computer illiterates should *not* be allowed to set IT policy. It's worse than having taxi drivers perform heart transplants.)
my guess is there is network booting involved right? so just make a simple shell script that runs at night and then shutdown. (i don't know do you leave your windows server on all the time?) if not set it in the server's task scheduler EDIT: ok so if your network isn't that sophisticated and all the terminals are actually local installs...then check out this forum post, its basically about what your asking for: http://forums.whirlpool.net.au/forum-replies-archive.cfm/816189.html and i know, you've got your network all set up and running, but next time something happens where you might have an opportunity to which up the operating systems, try using a Linux distro because defragmentation does not happen so quickly as to become a performance issue like on windows. and is a far superior server platform.
At my workplace, an automatic defragger manages fragmentation on the workstations and servers. As it can run in the background and does not require manual inputs, IT dept work on defrag has decreased significantly.
Related Q & A:
- How To Write A Resume?Best solution by Yahoo! Answers
- How To Write A Letter?Best solution by Yahoo! Answers
- How to trigger a script in Google Spreadsheet with .NET?Best solution by jotform.com
- How to write a parser in C?Best solution by Stack Overflow
- How to write a persuasive letter to a bank?Best solution by wikihow.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.