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

To be honest, I have no idea. If you want to use it in a batch file, I'm
sure there's some way to pass the password to it, although it might not be
as simple as an additional attribute.

> Also, if I use net start instead, will it always 
> start the service under the account listed, even 
> when called from a script?

Yes. Services always run within the account in which they're configured to
run. This is the option I'd recommend. The cfstart.bat file seems useful for
diagnostics, but not for restarting CFMX, really. Just write a batch file
with the appropriate "net stop" and "net start" commands, and you'll be all
set.

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
                                

Reply via email to