Dave, When I use the runas command, it asks for a password. Is it possible to pass a password to the runas program so that it can be automated? Also, if I use net start instead, will it always start the service under the account listed, even when called from a script?
Brook At 09:29 PM 1/31/2003 -0500, you wrote: > > Actually, the cfstart.bat file in CFMX (sorry, I > > should have said), triggers jrun.exe with a single > > flag -start. The CFMX Service doesn't even report > > to be running when starting it this way. What I > > really need is a list of flags that can be passed > > to Jrun at startup. > > > > I really need to have it start up under a user account. > > Anybody have any idea? > >Why not just configure the service to run as the desired user, then start it >yourself using: > >net start "ColdFusion MX Application Server" > >Since the cfstart.bat file runs CFMX as an application, you'd have to run >the batch file as the desired user to get CFMX to run as that user. You can >either login as that user, or in Windows 2000, use runas (type "runas" at a >command prompt for more information). If you're running Windows NT, I think >there's a "su" utility in the NT Resource Kit. > >Dave Watts, CTO, Fig Leaf Software >http://www.figleaf.com/ >voice: (202) 797-5496 >fax: (202) 797-5444 > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

