/build/static/layout/Breadcrumb_cap_w.png

How to create chkdsk and defrag batch file

I have a lots of windows 2000 professional users, and I need to create an bath file run chkdsk first then defrag after that,
Does any one how to run the scripts for this.
My users they have no local administrator right, they are just regular users.
How can I create an scripts run in Slient mode, even they are not login to the system, the machine is on, but no one login yet.

Thank you for all the help


Lillian

0 Comments   [ + ] Show comments

Answers (4)

Posted by: bkelly 17 years ago
Red Belt
0
I'd recommend looking into the Scheduler Service. You can schedule events to occur when users are not logged on and you can specify the credentials to be used.

If you have AD, a startup script may do the trick.

Admin Script Editor has a packager that can run scripts with alternate credentials like this, but you'd need to kick it off somehow (like a logon script.) http://www.adminscripteditor.com/editor
Posted by: schieb 17 years ago
Purple Belt
0
Here is what I use:

REM Prepare Disk
:: defrag c: drive
defrag.exe c:
:: check disk
echo y|chkdsk /F /I /C

Your deployment will vary. With Altiris I just hide the dialog. I follow that with a reboot task to start the chkdsk. If you use some other method then just script a shutdown -r -f in there at the end.
Posted by: LillianLian 17 years ago
Senior Yellow Belt
0
Schieb:

I thought you need to do chkdsk first before you do defrag, also can I use my deployment server create an batch file bondule like this

:: check disk
echo y|chkdsk /F /I /C

REM Prepare Disk
:: defrag c: drive
defrag.exe c:


Thanks for the help.
Posted by: schieb 17 years ago
Purple Belt
0
I was just saving myself a reboot. I don't know if it matters. If you reverse them you will need to stick a power management task in the middle to initiate the reboot for chkdsk to start. Yes just paste that into the DS under a job. If you choose to chkdsk first you will need to make 3 tasks:

CHKDSK part
(Reboot)
DEFRAG Part

You may choose to run as Hidden.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ