Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Running Defrag as NON-Admin User

Posted on 2004-10-20
4
Medium Priority
?
1,108 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 1000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
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…
Suggested Courses

926 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