PDA

View Full Version : Disk Defragmenter


Wayne
December 5th 03, 12:11 AM
Is there a good way to allow a Standard User to run Disk
Defragmenter in WinXP Pro? I've experimented with
several .vbs files, using the Runas command, but the
Administrative password is visible to anyone who opens the
file in Notepad.
We have 85 user workstations at our facility, and to walk
around and run Defrag as Administrator on each one is not
a logical option.
I'm very interested in hearing if anyone has addressed
this issue.

Dan DeStefano
December 5th 03, 12:12 AM
im not sure about scripting, but if you do not want to purchase a 3rd-party
defragmentation utility such as executive software's diskeeper 7
http://www.executivesoftware.com/ or raxco software's perfectdisk 2000 v5
www.raxco.com, then i would suggest simply using task scheduler. in this
manner you can schedule disk defragmenter to run under an account with
administrator credentials. however, i believe it is worth purchasing a
3rd-party solution, as most (or at least the 2 i mentioned) will allow you
to manage all machines using one, central interface. plus, they are much
faster than the built-in defragger and can do a much better job on a single
pass, where it takes the built-in defragger several passes; plus, these
utilities can be used to perform boot-time defragmentation, which allows for
defragmentation of the pagefile(s), metadata, mft, hibernation file, etc. i
use perfectdisk 2000 v5 and could not be happier with, not just the product,
but their excellent tech support (this product allows normal users to run
defragmentation, but not in networked mode).

Dan DeStefano


"Wayne" > wrote in message
...
> Is there a good way to allow a Standard User to run Disk
> Defragmenter in WinXP Pro? I've experimented with
> several .vbs files, using the Runas command, but the
> Administrative password is visible to anyone who opens the
> file in Notepad.
> We have 85 user workstations at our facility, and to walk
> around and run Defrag as Administrator on each one is not
> a logical option.
> I'm very interested in hearing if anyone has addressed
> this issue.

Doug Knox MS-MVP
December 5th 03, 12:14 AM
Use the Runas command with the /savecred command line switch. Example:

runas /user:computername\admin /savecred "D:\Program
Files\ahead\Nero\nero.exe"

The first time you run it, enter the password. After that it won't ask for
one again.
--
Doug Knox, MS-MVP Windows XP/ Windows Smart Display
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
--------------------------------
Associate Expert
ExpertZone - http://www.microsoft.com/windowsxp/expertzone
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.

"Wayne" > wrote in message
...
> Is there a good way to allow a Standard User to run Disk
> Defragmenter in WinXP Pro? I've experimented with
> several .vbs files, using the Runas command, but the
> Administrative password is visible to anyone who opens the
> file in Notepad.
> We have 85 user workstations at our facility, and to walk
> around and run Defrag as Administrator on each one is not
> a logical option.
> I'm very interested in hearing if anyone has addressed
> this issue.

JJansma
December 5th 03, 12:25 AM
Why go through all that trouble?

Simply create a batch file with the contents "defrag c:\", then create a
scheduled task to run this batch file on each users machine. When you create
the scheduled task, you can tell Windows to run it as administrator if
needed.

This is what we do here and it works perfectly.

Jeremy


"Wayne" > wrote in message
...
> Is there a good way to allow a Standard User to run Disk
> Defragmenter in WinXP Pro? I've experimented with
> several .vbs files, using the Runas command, but the
> Administrative password is visible to anyone who opens the
> file in Notepad.
> We have 85 user workstations at our facility, and to walk
> around and run Defrag as Administrator on each one is not
> a logical option.
> I'm very interested in hearing if anyone has addressed
> this issue.

Wayne
December 5th 03, 01:10 AM
My sincere apologies for not replying sooner.
Your suggestion worked very well; Thank you!
A caveat: I discovered that a remote setup doesn't work
even though the task is set to run as administrator. I
had to visit each workstation and temporarily give the
user admin rights, set up the task, and then set the user
back to Standard User.

>-----Original Message-----
>Why go through all that trouble?
>
>Simply create a batch file with the contents "defrag
c:\", then create a
>scheduled task to run this batch file on each users
machine. When you create
>the scheduled task, you can tell Windows to run it as
administrator if
>needed.
>
>This is what we do here and it works perfectly.
>
>Jeremy
>
>
>"Wayne" > wrote in message
...
>> Is there a good way to allow a Standard User to run
Disk
>> Defragmenter in WinXP Pro? I've experimented with
>> several .vbs files, using the Runas command, but the
>> Administrative password is visible to anyone who opens
the
>> file in Notepad.
>> We have 85 user workstations at our facility, and to
walk
>> around and run Defrag as Administrator on each one is
not
>> a logical option.
>> I'm very interested in hearing if anyone has addressed
>> this issue.
>
>
>.
>

Google