Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] Suggestions (https://www.kinook.com/Forum/forumdisplay.php?f=4)
-   -   Service Action (https://www.kinook.com/Forum/showthread.php?t=3196)

HippyCraig 11-05-2007 02:48 PM

Service Action
 
I was wondering why I can not specify a service account to access a remote server to start a service?

Will this be something for a future release and if so is there a way to set properties of said service. For example remotley turning the service off and then setting the service to automatic, specify an account and then restart the service.

Thanks,
Craig

kinook 11-14-2007 01:47 PM

Because that functionality is not currently included in the Service action. We've added the ability to alter a service's configuration parameters to our feature request list. For now, you could invoke sc.exe to do that.

HippyCraig 02-26-2008 08:11 PM

Will the ability to set an account in the service action be inabled in the next release as beside the command line unless my account has access to the server that Im running visual build under then this action dosent work on other servers.

If not the next release is this on your schedual?

Just as a side note I wanted to say this product has made my life so much easier.

kinook 02-27-2008 07:13 AM

The Service action will support configuring service properties, such as the account it runs under, in the next release (no ETA yet for when that release will be available).

HippyCraig 02-27-2008 08:22 AM

Thanks, beside setting what account the service runs under and other service properties. Will I have the ability to set an account to connect to the remote server with. Like the remote tab under the Run Program Action.

kinook 02-27-2008 09:06 AM

Not directly -- the Service action uses the OpenSCManager API to access a computer's service manager, which does not support specifying a different account.

One option might be to run a .bld file (which updates the service properties) on the remote computer (specifying the account/password for the remote build to run in).

HippyCraig 02-27-2008 09:11 AM

But would that require me to have Visual build on all the servers that I need to modify services on?

Currently how I get this to work is to have the person that is running the build on the build machine have access to both the build server and the app server otherwise if the user on the build machine can not access the server the script fail. One of the things I am trying to accomplish is not have all my build cordinatiors have access to all server just to centrally manage the builds.

Thanks for the help.

kinook 02-27-2008 10:53 AM

Yes, VBP would need to be installed on the remote computer for that to work.

Another option, if the alternate user account exists on the local computer too, may be to use the Remote tab of the VisBuildPro Project action, and specify the local computer (%COMPUTERNAME%) and user account to run under. That .bld file will then run under the alternate user account (locally, and it should also access the service manager on the remote computer with that account).

kinook 08-13-2009 08:24 PM

VBP v7 includes the mentioned enhancements to the Service action.

http://www.kinook.com/Forum/showthre...?threadid=3884

HippyCraig 08-14-2009 06:47 AM

The extra features are great, this will make configurations much easier.

But I still can't connect to the remove server under a service account. I still have the issue of having to make sure that the user running the build scripts still has accsess to the remote server. I have everthing else running as a service account except this feature.

kinook 08-14-2009 06:58 AM

I don't know of any way to achieve that other than the suggestions above.

HippyCraig 08-14-2009 07:04 AM

That would require me to more licences of VB just to support connecting to a service.

Again I like the new enhancements to this action but there has to be a better way then righting custom shell scripts to get this to work.

HippyCraig 03-11-2010 08:34 AM

I saw that the latest version now supports passing in a service account access the server.

I get the following when I pass in a service account that is an administrator on the box containing the service.

A logon request contained an invalid logon type value.

HippyCraig 03-11-2010 08:42 AM

I tried a few more tests and it does work, I had the user name entered wrong.

I was using Domain\account, checking the help file I saw that I need to change it to account@domain and it works now. You may want to check the help file for the syntex in your example.

Just out of couriosity, all other fields that take a service account can use both, why does this one only use one format?


Thanks so much for getting this into Visual Build, as always GREAT JOB!!!!

kinook 03-11-2010 08:57 AM

Apparently that's what the LogonUser API requires.


All times are GMT -5. The time now is 12:39 PM.


Copyright © 1999-2023 Kinook Software, Inc.