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