Start custom Ressource as admin?
- 14 years ago
Hi Sigi,
All resource agents get started in the Local System user context the same as the HAD service. It is not supported to start HAD with a different user account than Local System. However, there are some agents which have Username, Domain and Password attributes so that they can run their entry points with a different user. The process agent is one of these agents. You might try switching your customer agent to a process agent and take advantage of this feature.
Otherwise, you might want to try the runas.exe command in your first script to call the second one with elevated user rights. The only problem with this is that the username and password are passed to runas.exe in plain text format.
I think there are also some other windows commands that will allow for the change of the executing user account.
Thanks,
Wally