Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 25, 2013, 06:10:16 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Unable to run MyDefrag automatically  (Read 1696 times)
KenWA
Newbie
*
Posts: 3


View Profile
« on: November 27, 2009, 10:41:12 am »

I am running Windows XP Pro SP3 as a single user/administrator and have now upgraded to MyDefrag 4.2.6.  My repeated attempts to run an automatic defrag always fails.  I select "Add Task" in Control Panel and use the browse button to enter
"C:\Program Files\MyDefrag v4.2.6\Scripts\OptimizeDaily.MyD".  Select daily, enter time, enter a Password and click "Finish" only to get the following message "The new task has been created, but may not run because the account information could not be set.  The specific error is 0x8007005:Access denied.  Try using the Task page browse button to locate the application."

Needless to say the task does not run as scheduled.  What am I doing wrong?
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: November 27, 2009, 11:07:09 am »

I think you are trying to create the scheduled task while being logged in as a normal user? You have to be logged in as administrator to create a task.

p.s. On the internet I see that you can get the same error message when logged in as administrator, but have not set a password for the administrator userid (password is blank).
Logged
KenWA
Newbie
*
Posts: 3


View Profile
« Reply #2 on: November 27, 2009, 11:02:05 pm »

I did try being the administrator but it seems it falls down on the password part.
Under the circumstances then I will be unable to schedule a scan.  As a single user I have not set a password and have no intention of doing so.  Strange isn't it how Windows gets more and more complicated and leaves the single ordinary user floundering among all the overkill in security demanded by multi-users.

Thanks for the information.
Logged
amk
JkDefrag Hero
*****
Posts: 101



View Profile
« Reply #3 on: November 28, 2009, 01:56:42 pm »

In XP regular user may shedule job, executed under administrator account. For that he must know administrator login/password (on my observation password must be nonempty, "runas" also not works if password is empty).
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #4 on: November 28, 2009, 02:28:35 pm »

Under the circumstances then I will be unable to schedule a scan.
Create a userid that has administrator permissions and a password, for scheduling tasks only.
Logged
Henno
JkDefrag Senior
****
Posts: 49


View Profile
« Reply #5 on: November 28, 2009, 07:16:19 pm »

Something like this is much easier:
schtasks /create /tn "Jeroen Kessels MyDefrag" /tr """"C:\Program Files\Jeroen Kessels\MyDefrag\MyDefrag.exe"""script.myd" /sc "ONIDLE" /I 10 /ru "System"

This will create a job that runs under the local system account.

reg, Henno.
Logged
KenWA
Newbie
*
Posts: 3


View Profile
« Reply #6 on: December 03, 2009, 11:19:08 am »

Never having used User IDs or Administrator IDs I find these suggestions baffling.  What really intrigues me is that I have other scheduled tasks running on a regular basis (Antimalware for instance) which I set up without this performance.  I have two antispyware and 1 antivirus program which perform regular daily updates and scans and they do not demand administrator rights or passwords.  Why is this otherwise beautifully simple and user-friendly program so demanding?  Could this be a suggestion for a rewrite for the next version?

Regards,  Ken
Logged
BloodySword
JkDefrag Hero
*****
Posts: 1113



View Profile
« Reply #7 on: December 03, 2009, 11:45:04 am »

Moving files on a drive is a deeply system operation. Do you think that ANY operating system grants a user or even a guest to defragment your drives? And if you run your antivirus scans without administrator rights, then the scanner won't be able to scan all files on your drives.
Logged

Greetings from Germany!
Henno
JkDefrag Senior
****
Posts: 49


View Profile
« Reply #8 on: December 03, 2009, 11:57:22 am »

Never having used User IDs or Administrator IDs I find these suggestions baffling.  What really intrigues me is that I have other scheduled tasks running on a regular basis (Antimalware for instance) which I set up without this performance.  I have two antispyware and 1 antivirus program which perform regular daily updates and scans and they do not demand administrator rights or passwords.  Why is this otherwise beautifully simple and user-friendly program so demanding?  Could this be a suggestion for a rewrite for the next version?

Regards,  Ken

It's all a matter of permissions.
If you choose to use the PC with a user that's in the local administrators group, then that's your choice and software installations will be easy.
However, your system is more vulnerable to changes you don't want, such as malware, viruses etc.
So if you don't want that and you want to log on as a regular user, you have to change the permissions of these tasks to at least Administrator and preferably local system account.

reg, Henno.
Logged
BloodySword
JkDefrag Hero
*****
Posts: 1113



View Profile
« Reply #9 on: December 03, 2009, 12:02:09 pm »

Unfortunally today working in a user limited environement is not secure anymore because malware and other unwanted software is able to get administrator rights anyways. Sad
Logged

Greetings from Germany!
cg
JkDefrag Hero
*****
Posts: 101


View Profile
« Reply #10 on: December 03, 2009, 04:16:16 pm »

Never having used User IDs or Administrator IDs I find these suggestions baffling.  What really intrigues me is that I have other scheduled tasks running on a regular basis (Antimalware for instance) which I set up without this performance.  I have two antispyware and 1 antivirus program which perform regular daily updates and scans and they do not demand administrator rights or passwords.  Why is this otherwise beautifully simple and user-friendly program so demanding?  Could this be a suggestion for a rewrite for the next version?
Most application developers today recognize that if they don't adapt to the security present in the operating system, they won't be fully compatible.  You ask why some other programs are able to do things without Administrator Rights or passwords - well most programs that need low-level system access run as a windows service.  For example when I install an AntiVirus program it has to plug into the lowest level of file access to intercept I/O before it gets to the OS.  One of the best ways to program around security is to build your program as a windows service.  When you install it with Administrator rights, the service is then trusted by the OS and is essentially running with full system rights to everything on your computer.   Basically you then have a front end application that gives the end user the ability to interact with your program and it communicates to the service layer which has the full system rights regardless of whether the user does or not.


Unfortunally today working in a user limited environement is not secure anymore because malware and other unwanted software is able to get administrator rights anyways. Sad

Working in a limited environment still is far more secure than not at all.  Malware and unwanted software gets on a person's computer because the user does something they shouldn't.  Like click an executable attachment in an email from someone they don't know.
Logged
boco
JkDefrag Hero
*****
Posts: 153



View Profile
« Reply #11 on: December 03, 2009, 04:33:18 pm »

Too much software on Windows still relies on Admin rights. It's simply too annoying for John Do if every 2nd application fails to run due to insufficient permissions.

The problem is of historic nature. In a *NIX environment the tight security was there from the start and all software has been designed to deal with it. The same doesn't hold true for Windows. Previous consumer Windows (..., Win3.1, Win95, 98 and ME) had no restriction at all. Windows NT up to 5.0 was primarily intended for corporate customers. Windows XP was the first NT based OS hitting the masses. User account has Admin rights by default, yeah. Many otherwise good software programs are still in the Win9x era, security-wise.
Logged

T  hi s    Sign  a tu  re   is  q   uit  e   sor   te d  -op tim i zed  b  y desi  gn   .
poutnik
JkDefrag Hero
*****
Posts: 1105


View Profile
« Reply #12 on: December 03, 2009, 06:05:16 pm »

Unfortunally today working in a user limited environement is not secure anymore because malware and other unwanted software is able to get administrator rights anyways. Sad
Not always, not easily and not only in windows. If all the systems use admin / user approach, there is the sense.
Logged

It can be fast, good or easy. You can pick just 2 of them....
Treating Spacehog zone by the same effort as Boot zone is like cleaning a garden by the same effort as a living room.
poutnik
JkDefrag Hero
*****
Posts: 1105


View Profile
« Reply #13 on: December 03, 2009, 06:09:03 pm »

Never having used User IDs or Administrator IDs I find these suggestions baffling.  What really intrigues me is that I have other scheduled tasks running on a regular basis (Antimalware for instance) which I set up without this performance.  I have two antispyware and 1 antivirus program which perform regular daily updates and scans and they do not demand administrator rights or passwords.  Why is this otherwise beautifully simple and user-friendly program so demanding?  Could this be a suggestion for a rewrite for the next version?

Regards,  Ken
Those application either may not run in elevated privilegies,
either they use GUI running as common user ( e.g. PerfectDisk) and service under SYSTEM account.
The program does not seem to be demanding more that some its users.     Wink


Logged

It can be fast, good or easy. You can pick just 2 of them....
Treating Spacehog zone by the same effort as Boot zone is like cleaning a garden by the same effort as a living room.
cg
JkDefrag Hero
*****
Posts: 101


View Profile
« Reply #14 on: December 03, 2009, 06:29:34 pm »

Many otherwise good software programs are still in the Win9x era, security-wise.

You hit the nail on the head!  That's exactly why some programs still have security issues.  Either they write with no security in mind - or they're written with the assumption that everyone has admin rights.  That's becoming less frequent now as Microsoft is taking a similar approach that Linux systems have in that the user doesn't have write access to much of the system - only to the areas that the USER controls.  And such if a program is designed with that in mind - it will work fine in a tightly controlled security environment.

We had to redesign much of the product I develop on because it was initially designed in the Win9x era where everything was FAT32 with no lock down.   Once NTFS and user permissions really started becoming the norm (especially in businesses), we had to adjust.
« Last Edit: December 03, 2009, 06:33:14 pm by cg » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!