Re: How to execute a process under another account - PROPERLY?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



What errors are you getting returned when this fails on the customer
machine?

They vary between different customers. For some of them it works. For some
the Oracle reports module evidently can't access the printer, as no printout
appears in the queue. For others the process could not be executed. As you
can see from the code, I eventually made (almost) every step along the way
optional, so I could play around with different settings in an .ini file to
enable or disable, say, creation of user's environment etc.

I don't have the exact errors to hand. The cases I'm concerned about are
where logging on to the machine interactively and executing the report
writer works, but executing the report writer from the service does not
work, even though I am logging on with the same credentials. Before getting
down to the dirty business of troubleshooting individual cases, I have a
simple question:

Why is there a difference between:

(1) Logging on interactively and executing the program, i.e. me sitting in
front of the machine, logging on and double clicking on the report icon.

(2) Executing the program from a service, using the same command, start in
directory and logon credentials as in case (1).

This difference obviously has to do with account permissions and the way
some of our customers tie down their user accounts or where the user hive of
the registry is located, or whether there are logon scripts ... or who
knows. If you know further steps I'm missing, please tell me! Surely there
must be a way to programmatically emulate fully what happens when you are
physically in front of the machine and log on to a Windows account?


.



Relevant Pages

  • Re: Programmer (or A Techinical person) in a Tester ...
    ... And then you report it ... And then if the bug happens again, boom - the developers have two ... Imagine the cook who just makes food or imagines his/her customers ... worse skills, nicht wahr? ...
    (comp.software.testing)
  • Re: Sum of numbers
    ... Administrator to come in to insure we have this critical report by April. ... You say the union query 'only shows fields from the first table'. ... Do you mean that you want a multicolumn report with all customers' names ...
    (microsoft.public.access.reports)
  • Re: Anisotropy in the gravity force, and Mercury.
    ... I just remember there is a fucking ignorant bitch that wants to burn ... customers with hate so I guess its not directed to you but the customers ... said hobby dont make yourself scienyifiaclly brain dead tahts your ... scientifiaclly just do the job and let them police you and report later. ...
    (sci.physics.relativity)
  • Re: Sum of numbers
    ... Administrator to come in to insure we have this critical report by April. ... You say the union query 'only shows fields from the first table'. ... Do you mean that you want a multicolumn report with all customers' names ...
    (microsoft.public.access.reports)
  • Re: Anisotropy in the gravity force, and Mercury.
    ... I just remember there is a fucking ignorant bitch that wants to burn ... customers with hate so I guess its not directed to you but the customers ... said hobby dont make yourself scienyifiaclly brain dead tahts your ... scientifiaclly just do the job and let them police you and report later. ...
    (sci.physics.relativity)