Solved

Running Defrag as NON-Admin User

Posted on 2004-10-20
4
1,082 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
Comment Utility
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
Comment Utility
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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

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 …
cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now