- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Windows Server 2003
- >
- Start a executable .EXE under a different user, ev...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2008 02:39 AM
тАО11-17-2008 02:39 AM
Start a executable .EXE under a different user, every time its called
i'm looking for a way to tell a .exe to run under a specific user account (domain) every time it is called.
i'm aware that there a manual ways to do this with the runas command or different other enhanced tool. the point for me is i need something that works without user interaction.
means i have a scheduled job which starts a HP LoadRunner component called mdrv.exe
this on a machine where no user is logged in most of the time.
therefore i need to assure that the .exe is always started under a specific user account every time it is launched.
is there a way i can directly add the user to the .exe ? i did some extended google research. found several tools to do manual runas or scripts. but nothing to edit/change the .exe without and need to rename or so.
all help is highly appreciated and points will be awarded
many thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2008 04:42 PM
тАО11-17-2008 04:42 PM
Re: Start a executable .EXE under a different user, every time its called
For example, in your case:
1. Create a new local account called svc_loadrunner on the server and add it to the local administrators group (thus ensuring this account has the necessary local access).
2. Create a scheduled task that fires a batch file calling mdrv.exe with the appropriate parameters using the svc_loadrunner credentials. When the task is launched, it will run under the svc_loadrunner account. I believe this should fit the scenario you have described.
Note, when creating the svc_loadrunner account, it was added to the local administrators group giving it full access to the local machine. Access should be scoped properly to avoid (as in this case) giving too much access to an account. I did in this case to simplify. Also, if you have to access network resources in your script, this would require some kind of shared directory service or synchronized workgroup credentials.
Once you have the scheduled task configured and running, you can further troubleshoot with this document: http://www.shijaz.com/windows/taskscheduler.htm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2008 11:20 PM
тАО11-17-2008 11:20 PM
Re: Start a executable .EXE under a different user, every time its called
cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2008 12:00 AM
тАО11-21-2008 12:00 AM
Re: Start a executable .EXE under a different user, every time its called
The task scheduler would be applicable if a specific user is logged in all the time i reckon.
Have you looked up the options of running a program as a service?
You just may have to tinker with the registry a bit and you would have the following options:
1) Select the user running the prog.
2) Set dependencies
3) Set Restart tries incase if program fails to start
4) User's need not be logged in to run the service.
Here's the link:
http://support.microsoft.com/kb/137890
Cheers!
Shiva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2008 10:37 AM
тАО11-26-2008 10:37 AM