Solved

Running Defrag as NON-Admin User

Posted on 2004-10-20
4
1,088 Views
Last Modified: 2012-05-05
Is there any way to allow users who do not have admin rights to run defrag? Preferably I would like it to run in the background at a scheduled time, but I will accept anything that allows the users to run it. To give you some background, my users are all part of an Active Directory domain and using Windows 2000 and Windows XP. I would even like to know if there is a way to set a policy via group policy to defrag the computers at a desginated time.
0
Comment
Question by:tommy_hlfgr
  • 2
4 Comments
 
LVL 49

Accepted Solution

by:
sunray_2003 earned 250 total points
ID: 12357163
This is one of the methods to run from user login provided if they have administrator password

Running Disk Defragmenter Requires Administrator Privileges

Although any user can gain access to the Disk Defragmenter console, the ability to analyze or defragment a volume
requires administrator privileges. If you do not have administrator privileges and you try to use Disk Defragmentor, you may receive the following message:  Disk Defragmenter - You must have Administrator privileges to defrag a volume.

Disk Defragmenter was designed primarily for stand-alone workstations or servers whose users have the ability to log on locally with administrator privileges.

Disk Defragmenter is not intended to be a tool for administrators to maintain networked workstations. This version is not designed to be run remotely and cannot be scheduled to automatically defragment a volume without interaction
from a logged-on user. The only way a non-administrator can defragment a local volume is to run the Dfrg.msc console in the context of a user who has administrator privileges. You can accomplish this by running the following command:

runas /user:administrator@domain.company.com "mmc dfrg.msc"

The user is prompted for the administrator password. This command may be useful for an administrator who wants to run a defragmentation on a user's computer without forcing the user to log off.

0
 
LVL 49

Expert Comment

by:sunray_2003
ID: 12357196
Actually once you set a task in the task scheduler click on it to enable it
right-click it and go to properties
there you should see RUN AS
set the admin password there

So I donot think you need to give admin password as I told in my first comment

0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question