Solved

Running Defrag as NON-Admin User

Posted on 2004-10-20
4
1,092 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to Repair Windows XP 12 103
Drivers for PC, Windows XP Home 10 129
no display on laptop 5 84
What is this Task? 4 147
Disclosure: Use this tutorial only when no other options helps to get Windows XP running without any problems and you don't want to format the drive. The back up of the data is the responsible of the user, however there is a description of how t…
Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
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…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

740 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