Tasks in Scheduled Tasks won't load

G

Guest

Hi there.
I have an annoying problem....
I can't make applications load via Scheduled Tasks.
The error i get from the Scheduled Tasks log is:

"The attempt to log on to the account associated with the task failed,
therefore, the task did not run.
The specific error is:
0x8007052f: Logon failure: user account restriction. Possible reasons are
blank passwords not allowed, logon hour restrictions, or a policy restriction
has been enforced.
Verify that the task's Run-as name and password are valid and try again."

I've checked the user name and password for about 10 times, besides, I
haven't set a password for my administrator account, so i know the problem
aren't with the password. and i checked the user name i entered in the task
properties, and its fine.
any suggestions?

Thanks,
Shlomi
 
R

Rock

Shlompy said:
Hi there.
I have an annoying problem....
I can't make applications load via Scheduled Tasks.
The error i get from the Scheduled Tasks log is:

"The attempt to log on to the account associated with the task failed,
therefore, the task did not run.
The specific error is:
0x8007052f: Logon failure: user account restriction. Possible reasons are
blank passwords not allowed, logon hour restrictions, or a policy restriction
has been enforced.
Verify that the task's Run-as name and password are valid and try again."

I've checked the user name and password for about 10 times, besides, I
haven't set a password for my administrator account, so i know the problem
aren't with the password. and i checked the user name i entered in the task
properties, and its fine.
any suggestions?

Thanks,
Shlomi

See this link, "Scheduled Tasks - Applying/Running tasks without a
password". Click on S then scroll down to it:
http://www.kellys-korner-xp.com/xp_abc.htm
 
G

Guest

Hi -

I have a problem that is very similar. In fact the error is the same except
for the last letter. I tried the solution presented by Rock, but it didn't
work for me.

"The attempt to log on to the account associated with the task failed,
therefore, the task did not run.
The specific error is:
0x8007052e: Logon failure: unknown user name or bad password.
Verify that the task's Run-as name and password are valid and try again."

The name in the "Run as" box is NOT one of the User Names on my computer. So
I attempt to change it to the ONLY User Name that I have on my computer. When
I click on "Apply", I get another error:

"0x80041310: Unable to establish existence of the account specified. Ensure
the account name specified is valid."

Then it puts the original "Run as" name back in the box.

It's a Catch-22! First the username is not recognized. Then when I change it
to a valid usename, it's STILL not recognized.

What now?

prof611
 
N

Nightowl

prof611 said:
Hi -

I have a problem that is very similar. In fact the error is the same except
for the last letter. I tried the solution presented by Rock, but it didn't
work for me.

"The attempt to log on to the account associated with the task failed,
therefore, the task did not run.
The specific error is:
0x8007052e: Logon failure: unknown user name or bad password.
Verify that the task's Run-as name and password are valid and try again."

The name in the "Run as" box is NOT one of the User Names on my computer. So
I attempt to change it to the ONLY User Name that I have on my computer. When
I click on "Apply", I get another error:

"0x80041310: Unable to establish existence of the account specified. Ensure
the account name specified is valid."

Then it puts the original "Run as" name back in the box.

It's a Catch-22! First the username is not recognized. Then when I change it
to a valid usename, it's STILL not recognized.

What now?

Hi prof611

What *exactly* is appearing in the Run As box? On my computer it shows
as Computername\Username, e.g. 6498B0J\Nightowl. Is that the format
you're getting?

When you try to change it, do you use that format?

Do you have a password on your account? You need one to run Scheduled
Tasks unless you use the workaround posted by Rock.
 
G

Guest

Thanks to both S.Sengupta and Nightowl, but I think maybe I'm asking the
wrong question. Let me be more specific about the problem.

The 'Run as' name is 'Computername\UN1'. 'Computername' is correct, but
'UN1' is NOT one of the usernames on my computer. I only have ONE username,
which is 'UN2'. {Sorry for using fake names here, but I don't want any
hackers to learn the real ones.} I see other places on my computer where the
name 'UN1' is used, for example as one of the folders under 'Documents &
Settings'. However, it is not listed in 'User Accounts' in the Contol Panel.

Is is possible that 'Username' and 'User Account' are different things? If
so, how do I go about changing a 'Username' - so that they ARE the same?

prof611
 
N

Nightowl

prof611 said:
Thanks to both S.Sengupta and Nightowl, but I think maybe I'm asking the
wrong question. Let me be more specific about the problem.

The 'Run as' name is 'Computername\UN1'. 'Computername' is correct, but
'UN1' is NOT one of the usernames on my computer. I only have ONE username,
which is 'UN2'. {Sorry for using fake names here, but I don't want any
hackers to learn the real ones.} I see other places on my computer where the
name 'UN1' is used, for example as one of the folders under 'Documents &
Settings'. However, it is not listed in 'User Accounts' in the Contol Panel.

Not all accounts show up in User Accounts. Have you ever change your
username?

If you go to Start > Run and type in %userprofile% <OK>, where does that
take you? C:\Documents and Settings\UN2 or somewhere else?

Here's how to check the active accounts on your computer. Go to Start >
Run and type in "control userpasswords2" (without the quote) <OK>. In
the box that pops up should be a list of users. Make a note of exactly
what it says in there, paying attention to caps or lower-case, and what
group each user belongs to. Is the built-in Administrator shown? Is your
username UN2 there, and if so does it say you are in the Administrators
group?

If you have Pro, click on the Advanced tab and then the Advanced
button. Double-click on Users and look at the listing in the right-hand
pane. You might be surprised to see there are a few more accounts on
your computer, maybe including a Guest, a Help Assistant and a Support
account. Those that are disabled will have a red X on their icon. Take
note again of all the active users, and especially the description of
what they are.
Is is possible that 'Username' and 'User Account' are different things?

Yes, it quite often happens. When I first upgraded to XP from Windows
ME, for example, my account ended up as "default", while my user name,
that I logged in with and was shown on the Start Menu, was my Christian
name. So my Send To folder, for example, was under C:\Documents and
Settings\default\SendTo. And if you were to change your username, it
wouldn't change the name of the account folder in your profile. It
doesn't matter at all as long as the computer knows username A's
settings are stored in profile B.

But that wouldn't cause the problem you're seeing now. Scheduled Tasks
is only interested in Computername\Username; despite the rather
misleadingly-worded error you got, the account name doesn't come into it
and it doesn't matter what it is.
If so, how do I go about changing a 'Username' - so that they ARE the
same?

You create a new account with the new name and copy your old profile
into it. But first you need to find out whether they are *not* the same
on your computer; try typing %homepath% or %userprofile% or sendto or
Desktop in Start > Run, as I suggested above. This will show what your
account name is.
 
G

Guest

Thanks, Nightowl. I have been trying out your suggestions, but not all of
them will work on my computer (XP Home/SP2).

I fixed the original problem with the Scheduled Tasks. It was caused by my
failure to check the 'Run only if logged on' box in the task where the error
occurred. Once I checked this box (and reset the Schedule to run the task in
3 seconds, so I could see if it worked), it worked fine. I found the solution
by looking at the other 2 tasks that I have scheduled, which run as
scheduled,and noticing that their box was checked.

Your anecdote about your computer changing your user name to your Christian
name rang a bell. That is exactly what happened to me a year ago when I did a
clean reinstall of XP. I was incensed, since I hate my Christian name. I had
no idea how it happened, but was so mad that I went into the Registry and
changed it back wherever I found it. On the next Reboot, the computer changed
everything BACK to my hated Christian name!

I just decided to create a new account, to see if I could somehow trick the
computer into substituting the name I prefer. All that happened was that it
created new folders in Documents and Settings with the name 'Christianname2',
which was NOT the name I used on the new account at all! After deleting the
new account, that folder thankfully disappeared.

The ONLY account listed in User Accounts is the one having the name I
prefer, but the detestable 'Christianname' appears all over my C drive. Does
anyone have any ideas about how to get rid of it?

prof611
 
N

Nightowl

prof611 said:
Thanks, Nightowl. I have been trying out your suggestions, but not all of
them will work on my computer (XP Home/SP2).

I fixed the original problem with the Scheduled Tasks. It was caused by my
failure to check the 'Run only if logged on' box in the task where the error
occurred. Once I checked this box (and reset the Schedule to run the task in
3 seconds, so I could see if it worked), it worked fine. I found the solution
by looking at the other 2 tasks that I have scheduled, which run as
scheduled,and noticing that their box was checked.

Good, glad you have it fixed now!
Your anecdote about your computer changing your user name to your Christian
name rang a bell. That is exactly what happened to me a year ago when I did a
clean reinstall of XP.

Um, well, no, the computer didn't change my name. What I meant was, most
people will have an account or profile that is the same as their
username, e.g. user Fred will have the profile path C:\Documents and
Settings\Fred.

In my original update from ME, either it didn't ask me for an account
name or I must have missed the option, so I ended up with all my docs
and settings being in the path "default", though I signed on to the
computer with my Christian name. I was just trying to illustrate that it
is easily possible to have a "profile name" or account name that is
different from your username. This will happen too if Fred changes his
username to John -- he will log on with the new name but the folders in
his profile will not be renamed and will stay at C:\Docs and
Settings\Fred.
The ONLY account listed in User Accounts is the one having the name I
prefer, but the detestable 'Christianname' appears all over my C drive. Does
anyone have any ideas about how to get rid of it?

Yes, but did you try "control userpasswords2" as I suggested? And you
never said what happens if you type %userprofile% in Start > Run. Can
you post back with the answers?

You don't seem to be too sure what your profile is and it's really
important to find this out and what other live accounts are on your
machine before you start messing about and deleting folders.
Christianname could be your profile or even the built-in Administrator.
 
G

Guest

Nightowl said:
In my original update from ME, either it didn't ask me for an account
name or I must have missed the option, so I ended up with all my docs
and settings being in the path "default", though I signed on to the
computer with my Christian name. I was just trying to illustrate that it
is easily possible to have a "profile name" or account name that is
different from your username. This will happen too if Fred changes his
username to John -- he will log on with the new name but the folders in
his profile will not be renamed and will stay at C:\Docs and
Settings\Fred.

Yes. That's what I want to do, and am not allowed to do: change the name on
C:\Docs and Settings\Fred to --> John.
... did you try "control userpasswords2" as I suggested? And you
never said what happens if you type %userprofile% in Start > Run. Can
you post back with the answers?
After typing in %userprofile%, it took me to C:\Docs and Settings\UN1 ('UN1'
is what we have been calling 'Christianname').

I tried 'contol userpasswords2', and got: "Windows cannot find 'control'.
Make sure you typed the name correctly, and the try again. To search for a
file, click the Start button, and then click Search.", which obviously
doesn't help.
You don't seem to be too sure what your profile is and it's really
important to find this out and what other live accounts are on your
machine before you start messing about and deleting folders.
Christianname could be your profile or even the built-in Administrator.

The Administrator account is the only one that appears in User Accounts in
the Contol Panel, and it's not Christianname.

prof611
 
N

Nightowl

Yes. That's what I want to do, and am not allowed to do: change the name on
C:\Docs and Settings\Fred to --> John.

After typing in %userprofile%, it took me to C:\Docs and Settings\UN1 ('UN1'
is what we have been calling 'Christianname').

Ah. Right. So that means that Christianname is your profile, where all
your settings are stored, and you cannot/must not try to just delete it
(I don't think Windows will let you anyway, but don't try!)

There will be a way later on to get rid of it, and make your profile UN2
as you want, but we need to sort out a few things first.
I tried 'contol userpasswords2', and got: "Windows cannot find 'control'.
Make sure you typed the name correctly, and the try again. To search for a
file, click the Start button, and then click Search.", which obviously
doesn't help.

Try it again, making sure to type "control", or "control.exe", not
contol. It definitely should work. I want to see whether your built-in
Administrator is there and what it is called.
The Administrator account is the only one that appears in User Accounts in
the Contol Panel, and it's not Christianname.

This can't be right. The Administrator account is hidden and I believe
in Home the only way to get to it is through Safe Mode. I am talking
about THE Administrator -- that is the built-in account -- not just a
user account with administrator rights, like mine is and it sounds like
your UN2 is.
 
G

Guest

Thanks for your continued help, Nightowl!

Sorry I am so tardy in replying, but I didn't get an email notification of a
reply, and just decided to check manually today.

I didn't even notice the mistyping of 'control'. I tried it again, and now
it took me to a User Accounts page I've never seen before. I see two Users
that are not listed in the User Accounts page accessible form the Contol
Panel: Administrator and Christianname. The Administrator user is described
as: 'Built-in account for administering the computer/domain'. Both users are
in the Administrators Group.

Wow! I thought I knew a bit about my computer, but here's something
completely unexpected. Why are there 2 User Accounts pages, and why doesn't
it say anything about the second one in 'Help and Support'?

I think I know how to change 'Christianname' to 'UN2", but I won't do it
until I hear again from you, since I don't know what would happen if I
renamed 'Christianname' to 'UN2', since that would make 2 User Accounts with
the name 'UN2'.

Professor
 
N

Nightowl

Thanks for your continued help, Nightowl!

Hi Prof, you are very welcome :)
Sorry I am so tardy in replying, but I didn't get an email notification of a
reply, and just decided to check manually today.

I didn't even notice the mistyping of 'control'. I tried it again, and now
it took me to a User Accounts page I've never seen before. I see two Users
that are not listed in the User Accounts page accessible form the Contol
Panel: Administrator and Christianname. The Administrator user is described
as: 'Built-in account for administering the computer/domain'. Both users are
in the Administrators Group.

OK, good, that's put one of my fears to rest -- your built-in
Administrator is still there :)

The fact that Christianname is there and listed as a user is not so
good, and puzzling. . . Without trying to confuse you, the fact that
when you're logged in as UN2 and you type %userprofile% in the Start >
Run box it takes you to C:\docs and settings\Christianname means that
your account name/profile is Christianname.

If there is a *user* Christianname as well, is it also sharing that same
profile? That's what I don't know. . . I think it should be all right as
long as you don't try to delete or change Christianname at all until
after you've successfully copied the profile.
Wow! I thought I knew a bit about my computer, but here's something
completely unexpected. Why are there 2 User Accounts pages, and why doesn't
it say anything about the second one in 'Help and Support'?

Hmm, I have to say I really don't know :) Userpasswords2 can be very
handy, though, and there is a tweak on Kelly's site to add it to the
Control Panel if you want.
I think I know how to change 'Christianname' to 'UN2", but I won't do it
until I hear again from you, since I don't know what would happen if I
renamed 'Christianname' to 'UN2', since that would make 2 User Accounts with
the name 'UN2'.

No, no, please don't do that! It could cause a terrible muddle! What you
need to do is copy your current profile to a new one which is named the
way you want it, and there is a special procedure for doing this.

Basically you copy A (Christianname) to B (a new user you have created,
which will become your new main account) while logged in as C (who must
be an administrator). So first, if you want your eventual username and
profile to be called UN2, you will need to rename your current UN2 user;
that's so you can use that name for the new account you'll create to
which the profile will be copied. When you've created the account you
need to log in to it once, which creates the folders in its profile.
Then log out of it again; you must not be logged in to either A or B
while you do the copying.

Usually people log in as the Administrator to perform the actual
procedure, but as I think you said you have XP Home, this means you'd
have to do it in Safe Mode. If you'd rather avoid that, create a second
temporary new user with administrator status and use that account to do
the work.

Then you just follow the instructions here (from "Copy files. . .":

How to copy data from a corrupted user profile to a new profile
http://support.microsoft.com/default.aspx?scid=kb;en-us;811151

where Old_username will be Christianname, and New_username the new UN2
account you've created;

or here

Copy a User Profile
http://www.kellys-korner-xp.com/win_xp_logon.htm

If you use the Microsoft article method, and you use OE, do note what it
says about migrating your emails and address book before deleting the
old profile. In any case, I'd advise you to wait a day or so, or at
least a few hours! before deleting the old profiles and unwanted users,
so you can make sure everything is working and where it should be. Then
if for some reason something went wrong, you still have your old account
to go back to.

Do please be careful and if you possibly can back up everything in
C:\Documents and Settings beforehand.

Good luck, let me know how it goes!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top