| | | Forum Newbie
       
Group: Forum Members Last Login: 8/8/2007 3:21:37 PM Posts: 3, Visits: 8 |
| | Is there a way to schedule a defrag on 2000/xp workstation (PowerUser users) using Prism deploy? I know PowerUser cannot run Defrag, it will have to be run as either an administrator or possibly as system account. Are there any certain command line param or script commands that would work better than others for an unattended defrag? |
| | | | 
Supreme Being
       
Group: Moderators Last Login: 9/3/2008 9:40:39 PM Posts: 654, Visits: 800 |
| On XP, a defragmentation can be scheduled by creating a command Task that uses the following as the command: %comspec% /c C:\WINDOWS\system32\defrag.exe C: View the properties of this new Task, select the Task tab, and click the Account... button. Here you can set the Task to "Run as the Local System account" or you can specify an administrator account by choosing "Run as this account:". This Task can then be scheduled to any XP machine to defragment the C: drive. Windows 2000 does not have the defrag utility, but a quick search on the internet should result in a few freeware command line utilities that would work in the same way.
New Boundary Technologies Support support@newboundary.com |
| | | | Junior Member
       
Group: Forum Members Last Login: 7/9/2008 9:31:31 AM Posts: 16, Visits: 15 |
| | You can also run this as an unattended command. We use this all the time. It allows us to simply have the PC on and NOT LOGGED IN. Its great, for users that just can't be interupted we just walk around and power up a group of machines in the evening and send the command. When the user gets in to the office in the morning they are all set. We are full WinXP Pro SP2 shop -Mike |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 4/11/2008 10:21:12 AM Posts: 7, Visits: 23 |
| | I'm trying this but not having any success. I set the execution to "allow unattended installation", and I've tried the 'run as' as both "local system account", and as "run as this account" with an admin's credentials. In any case I get a 'command execution failed' 5200 error code. Any idea what I could be doing wrong? |
| | | | 
Supreme Being
       
Group: Moderators Last Login: 9/3/2008 9:40:39 PM Posts: 654, Visits: 800 |
| Check to make sure that you have the syntax correct:
%comspec% /c C:\WINDOWS\system32\defrag.exe C:
Also make sure that you are using this as a command task and not a package task.
You might find more details in the Client's PICTAKER.LOG which can be found in %windir%.
Also, simply try the command "C:\WINDOWS\system32\defrag.exe C:" in a command prompt window on one of the machines that is giving you the 5200 error. The defrag.exe error should be returned within the command prompt window.
New Boundary Technologies Support support@newboundary.com |
| |
|
|