Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DUA and EXECUTE Command issues

2 views
Skip to first unread message

VijayS

unread,
Mar 16, 2005, 2:52:34 AM3/16/05
to
I've included DUA in my build image but the installed service will not
start if the username is Administrator. The service tries to start and
spits out the error message "An error 1069 - (The service did not start
due to a logon failure)".

When I switch the service to Log On as a local system account, it
starts correctly.

However, when I try to execute the DUA command
EXECUTE,DAERH_IGNORE,DAYES,1,C:\update\updater.exe,1,C:\update\updater.exe,DAYES,4294967295,1,Administrator,1,,1,,,,1,C:\update,0,

the event viewer displays this error message:

Source:DUAgent
Description:DUAgent Service - Error Executing Command
CreateProcessWithLogonW. (The specified service does not exist as an
installed service.)

Is this because DUAgent is trying to run my application as a service?

How do I tell DUAgent to execute that app with the current logged in
User settings?

The administrator is the person logged in.

Thanks for your help,

-VijayS

Brad Combs

unread,
Mar 16, 2005, 9:10:23 AM3/16/05
to
Vijay,

I went through something similar with a client a few months back. We finally
decided upon..

1) Setting DUA to use the administrator account
2) Running "sc config dua obj= administrator password= 'adminpassword'"

You'll need the "Service Command Line Tool" to get sc.exe (or you can copy
it from Pro)

Keep in mind if you change the administrator password you have to change it
in the service too.

HTH,
Brad

"VijayS" <vijay.s...@gmail.com> wrote in message
news:1110959554.8...@o13g2000cwo.googlegroups.com...

VijayS

unread,
Mar 16, 2005, 7:05:29 PM3/16/05
to
Hi Brad,

Your step 1 fails me. I cannot get DUA to run as an administrator. When
I set the DUAgent service to logon as Administrator, I get the 1069
error.

Of course, the password is correct. The password is blank, if that
makes any difference.

Thanks,
Vijay

Brad Combs

unread,
Mar 17, 2005, 9:50:54 AM3/17/05
to
Vijay,

Once the system has been through FBA open a command prompt and run the sc
command to change the service password.

You will have to set a password for both the administrator account and the
service. So, in TD set a password for the administrator account. You could
also add the Automatic Logon component at this time if you need the system
to log in automatically (Don't forget to set the username and password here
as well). Run FBA. After FBA you will get the service failure (becuase it's
not configured to use the current administrator password). Now run the
commmand "sc config dua obj= administrator password= 'adminpassword'".

HTH,
Brad

"VijayS" <vijay.s...@gmail.com> wrote in message

news:1111017929.5...@g14g2000cwa.googlegroups.com...

VijayS

unread,
Mar 18, 2005, 12:46:16 AM3/18/05
to
Brad,

After setting the password from nothing to "pw", the service logged in
as Administrator.

However, when DUAgent tries to run the detected script, it returns the
error:

DUAgent Service - Error Executing Command CreateProcessWithLogonW. (The
specified service does not exist as an installed service.

).

for the command

EXECUTE,DAERH_IGNORE,DAYES,1,C:\update\updater.exe,1,C:\update\updater.exe,DAYES,4294967295,1,Administrator,1,,1,pw,,,1,C:\update,0,

Does DUAgent think it's trying to run a service, or do I need to load
user profiles?

KM

unread,
Mar 18, 2005, 2:26:01 AM3/18/05
to
VijayS,

Just an idea.. Try to replace the Administrator in the EXECUTE command by COMPUTERNAME\Administrator.

KM

PS. Blank Administrator password issue on SP2 has been reported a few times already.

VijayS

unread,
Mar 20, 2005, 8:07:14 PM3/20/05
to
KM,

I tried .\Administrator and COMPUTERNAME\Administrator. Both did not
work.

I'm not sure what else I can try. This error message is quite vague.

-V

KM

unread,
Mar 20, 2005, 11:28:29 PM3/20/05
to
VijayS,

Do you have "Secondary Logon" service up and running at run time?
Does the runas.exe command work there?

KM

VijayS

unread,
Mar 21, 2005, 8:04:48 PM3/21/05
to
I included the "RunAs Service" component in my build and now the
EXECUTE command runs Updater.exe.

However, Updater.exe's main window does not show even though it's
running.

How do I get DUAgent to run this process with a GUI?

KM

unread,
Mar 21, 2005, 8:29:34 PM3/21/05
to
VijayS,

Most likely the Updater.exe is your own application, right? I don't know what it does.

Anyway.. to see the application GUI you must run it under Interactive user (or currently logged user) to be able to connect it to
the interactive desktop.
Please read more here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/com/htm/reg_7nar.asp

Also, make sure to set properly Desktop_name parameter of STARTUINFO structure in the EXECUTE command.

--
Regards,
KM, BSquare Corp.

PS. If currently logged on user is not Admin, you may not want to show a system tool GUI for him.

VijayS

unread,
Mar 21, 2005, 11:01:07 PM3/21/05
to
KM,

Updater.exe is my application. For now it just creates an empty .NET
Windows Form. The form will represent the GUI the user sees while the
system is updating.


I got the application to start and draw a GUI with command:
3,DAERH_IGNORE,DAYES,1,C:\update\updater.exe,1,C:\update\updater.exe,DAYES,4294967295,1,.\Administrator,1,,1,password,,,1,C:\update,1,0,WinSta0\Default,,,5,5,

The STARTUPINFO structure is set in this command with the desktop_name.

However, Updater.exe's window isn't drawn correctly. I can see the
light-to-dark title bar but I cannot see the Close,Minimise,Max
buttons or the main part of the window or any text. In those undrawn
parts the window takes on the colour value of the background.

What could be making this happen?

-V

KM

unread,
Mar 22, 2005, 5:38:45 AM3/22/05
to
VijayS,

Does the problem appear with your Updater.exe app only or with any app you launch with the command?
If latter, see this thread
http://groups-beta.google.com/group/microsoft.public.windowsxp.embedded/browse_frm/thread/4188635820ecfd64/ed85f92fb411e6ab#ed85f92fb411e6ab

What user account you are logged in?
What user account DUA service is started under?

If the user account is not Administrator, what you see is drawing on nn default window station desktop (e.g., from one user account
to another user's desktop). You can test the case on XP Pro by creating a simple app that will do similar (or, basically, just use
CreateProcessWithLogonW API). If the behaviour is the same, you won't be able to fix it (by "easy" way).

KM

0 new messages