DUA and EXECUTE Command issues

V

VijayS

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
 
B

Brad Combs

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
 
V

VijayS

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
 
B

Brad Combs

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
 
V

VijayS

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?
 
K

KM

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.
 
V

VijayS

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
 
K

KM

VijayS,

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

KM
 
V

VijayS

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?
 
V

VijayS

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
 
K

KM

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...35820ecfd64/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
 

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

Similar Threads

REQUEST: RAM Reg EWF DUA example 1
DUAgent - not working - error 3
DUA errors 1
EWF/DUA help needed 18
DUA 1
DUA Problems. 1
Running MSI in DUA script 9
DUA problems 2

Top