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
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)
Please log in to answer
Posted by:
bkelly
17 years ago
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
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
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.
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
Posted by:
schieb
17 years ago
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.
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.
so that the conversation will remain readable.