From: Tyler Opatrny <Tyler@(email surpressed)> Subject: rushd service command line setup Date: Tue, 30 Jan 2007 16:22:09 -0500 |
Msg# 1463 View Complete Thread (6 articles) | All Threads Last Next |
In windows xp, is there a way to edit the rushd service to be able to
specify the username and password for the service all in command line?
Or before I do the rush install is there a file i can edit to have it
automaticly use a certain username and password.
Would be a cool feature to save on setup time.example, instead of it defaulting in the log on tab as local system account, i want it to choose "This account" and be able to use whatever username and password i want. |
From: Greg Ercolano <erco@(email surpressed)> Subject: Re: rushd service command line setup Date: Tue, 30 Jan 2007 20:05:16 -0500 |
Msg# 1464 View Complete Thread (6 articles) | All Threads Last Next |
Tyler Opatrny wrote: [posted to rush.general]In windows xp, is there a way to edit the rushd service to be able to specify the username and password for the service all in command line? Or before I do the rush install is there a file i can edit to have it automaticly use a certain username and password.Would be a cool feature to save on setup time. I don't think you can do it with the base OS software. I wish it could.. as that would be cool for automating installs. I believe the correct way is to use either regedit or one of the windows server admin tools to propagate the settings from one working machine to the others.. I'm not sure how that works myself.. a good book on Microsoft Administration probably covers that. At very least I would think the Microsoft Resource Kit might have such a tool, but then you'd have to install that on each machine, and that's not freeware last I looked. I know you can create new users with 'net user /add' which might be handy for creating the local rush user (if you're using WORKGROUPS instead of DOMAINs) But I'm not sure there's a way to change the service settings from the command line, esp. service usernames and passwords. There might be some freeware out there that lets you do this, if the resource kit doesn't. If there is a way to do it with the built in windows software, I don't know it. example, instead of it defaulting in the log on tab as local system account, i want it to choose "This account" and be able to use whatever username and password i want. -- Greg Ercolano, erco@(email surpressed) Rush Render Queue, http://seriss.com/rush/ Tel: (Tel# suppressed) Fax: (Tel# suppressed) Cel: (Tel# suppressed) |
From: Greg Ercolano <erco@(email surpressed)> Subject: Re: rushd service command line setup Date: Tue, 30 Jan 2007 22:34:29 -0500 |
Msg# 1465 View Complete Thread (6 articles) | All Threads Last Next |
Tyler Opatrny wrote:In windows xp, is there a way to edit the rushd service to be able to specify the username and password for the service all in command line? *Actually*, it looks like in XP Pro there /is/ a way to do this. In short, the 'SC' (service config) command: sc config rushd obj= <USERNAME> password= <PASSWORD> Lets' say you want to set the "Log On As" info: This Account: .\render Password: rush ..then apparently the command line that will do this is: sc config rushd obj= .\render password= rush Note the strange presence of spaces after the = signs. Microsoft comes through again in bizarro syntax. I've known for a long time about the SC command, but it's only been part of the Windows Resource Kit, an add on that few bother to purchase, and had to be installed on each machine. Looks like as of XP Pro it's now part of the OS. About friggin time. This cool book I bought a year or so ago, published by Microsoft seems to cover this and many other topics of command line oriented admin of windows, which I can definitely recommend: Title: "Windows Command Line Administrator's Pocket Consultant" Publisher: Microsoft Press ISBN: 0-7356-2038-5 List Price: $29.99 US I don't think you can do it with the base OS software. I wish it could.. as that would be cool for automating installs. (Replying to myself) Well, that used to be the case. It certainly was with Windows 2K and NT, that command did not come with unless you installed the Resource Kit. At very least I would think the Microsoft Resource Kit might have such a tool, but then you'd have to install that on each machine, and that's not freeware last I looked. This SC command is the one I was thinking of in the resource kit, but I put it far out of my mind back in 2002, because the resource kit was not available to most folks. I know you can create new users with 'net user /add' which might be handy for creating the local rush user (if you're using WORKGROUPS instead of DOMAINs) This book also covers ways to completely administer active directory services from the command line (eg. dsquery, etc), so that you can add/configure/change/remove domain users, and the like. Handy stuff, if you take windows administration "seriously". I still think MS is all a big mess and can't wait for it to be washed away. -- Greg Ercolano, erco@(email surpressed) Rush Render Queue, http://seriss.com/rush/ Tel: (Tel# suppressed) Fax: (Tel# suppressed) Cel: (Tel# suppressed) |
From: "Niklas Aldergren" <n.aldergren@(email surpressed)> Subject: Re: rushd service command line setup Date: Wed, 31 Jan 2007 04:20:28 -0500 |
Msg# 1466 View Complete Thread (6 articles) | All Threads Last Next |
On 31 Jan 2007 03:34:29 -0000, Greg Ercolano <erco@(email surpressed)> wrote: [posted to rush.general] > Tyler Opatrny wrote: >> In windows xp, is there a way to edit the rushd service to be able to >> specify the username and password for the service all in command line? instsrv, the app that's used to install the service on win32 (see install.bat) actually accepts the flags -a and -p for account and password respectively. The downside here is that the password is in clear-text in install.bat so protect the installation point appropriately. Be aware that the account you specify must have the 'log on as a service' right. I accomplish this by setting it through group policy in AD. /Niklas -- Swiss International | www.swiss.se |
From: Greg Ercolano <erco@(email surpressed)> Subject: Re: rushd service command line setup Date: Fri, 23 Feb 2007 15:03:42 -0500 |
Msg# 1480 View Complete Thread (6 articles) | All Threads Last Next |
Niklas Aldergren wrote: On 31 Jan 2007 03:34:29 -0000, Greg Ercolano <erco@(email surpressed)> wrote:[posted to rush.general]The downside here is that the password is in clear-text in install.bat so protect the installation point appropriately. The problem I recall with instsrv is that if you supply the -a/-p flags, they'll only work if the service is not currently installed. So to make a /change/, you must first remove the service with 'instsrv Rushd remove', then re-create it with 'instsrv Rushd c:\rush\etc\bin\srvany.exe -a .\render -p render', and then re-apply the registry settings for the command line arguments. I think an approach I can take is to make the install.bat take optional <USERNAME> and <PASSWORD> settings on the command line, eg: install.bat -user .\render -pass render So that if those flags are specified, the script will pass the -a/-p flags to instsrv. I'll do some tests. Either that, or I can have the script call SC.EXE to do the job more easily. Be aware that the account you specify must have the 'log on as a service' right. Both the SC command (if available), and the instsrv command will do this automagically. In the case of instsrv, it seems you must first remove then re-create the service and re-apply the registry settings, eg: instsrv Rushd remove instsrv Rushd c:\rush\etc\bin\srvany.exe -a .\render -p render reg add HKLM\System\CurrentControlSet\Services\rushd\Parameters reg add HKLM\System\CurrentControlSet\Services\rushd\Parameters\Application=c:\rush\bin\rushd.exe ..which would set up the rushd service to run as 'render', password 'render'. SC is a little bit easier if all you want to do is change the username/password. I'll follow up to this thread if I find this works well across all the windows platforms. |
From: Greg Ercolano <erco@(email surpressed)> Subject: Re: rushd service command line setup Date: Fri, 23 Feb 2007 15:24:31 -0500 |
Msg# 1481 View Complete Thread (6 articles) | All Threads Last Next |
Be aware that the account you specify must have the 'log on as a service' right.Both the SC command (if available), and the instsrv command will do this automagically. ..regarding that last statement, I should underline it sets up the service 'Log on as' info IF the user/password are specified on the instserv/sc command line. In other words, when user/pass is specified, the 'Log on as: Local System account' is disabled, setting up the service to run as that user/pass instead. -- Greg Ercolano, erco@(email surpressed) Rush Render Queue, http://seriss.com/rush/ Tel: (Tel# suppressed) Fax: (Tel# suppressed) Cel: (Tel# suppressed) |