;**** AutoIT Script to allow users to defrag their hard drive **** ; Set the RunAs parameters to use local adminstrator account RunAsSet("Administrator",@ComputerName, "PASSWORDHERE") ; Run defrag as admin RunWait("mmc.exe dfrg.msc",@SystemDir) ; Reset user's permissions RunAsSet() ;**** End of Script ****