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
Solved

Running Defrag as NON-Admin User

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
User laptop information 6 143
XP machine unable to logon 13 58
Explanation of install files for Windows XP devices 3 102
Task with PowerShell Script is failing with 0x41301 7 120
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…
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!    …
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

792 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