Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Win API / March 2008



Tip: Looking for answers? Try searching our database.

Service properties

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Don Quixote - 06 Mar 2008 01:46 GMT
Hello,
I've written several programs that can be installed as a service (using the
NTSCV.OCX for those who care) and have had no problems.

This time I would like to install it by using an account other than the
LocalSystem account.

I can create the proper user and set the rights for log on As a Service.

I would like a way to programmatically change its properties to use the
account I created. At the very least, I would like to automatically open the
Service property window.
And if anybody knows how to do it directly from the ntscv.ocx, that would be
even better.

Thanks to all

Sal
Tony Proctor - 06 Mar 2008 18:49 GMT
The NTSVC control has Account and Password properties sal. Have you tried
using them yet?

For instance, NTService1.Account = "domain\name" or NTService1.Account =
".\localaccount"

   Tony Proctor

> Hello,
> I've written several programs that can be installed as a service (using
[quoted text clipped - 14 lines]
>
> Sal
Don Quixote - 07 Mar 2008 20:09 GMT
Actually I did.
However, after your reply, I told myself that I must have been doing
something wrong.
Indeed, the Interactive property was being set to true in my code (it was at
False at design time), which is of course incompatible with the usage of a
LocalAccount.
Setting it to False fixed my problem.

Thanks Tony for the gentle reminder. I deserved more of a kick in the
pants....

Sal

> The NTSVC control has Account and Password properties sal. Have you tried
> using them yet?
[quoted text clipped - 22 lines]
>>
>> Sal
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.