Page 1 of 1 1
Topic Options
#158164 - 2006-03-02 04:48 PM NT 4 Domains and accounts
brewdude6 Offline
Hey THIS is FUN

Registered: 2000-10-21
Posts: 280
Loc: Nashville, TN
Have any of you done any scripts for changing local admin passwords and domain admin passwords to include accounts used to start scheduled tasks and services? We have about 200 server nodes and one of the domain admins has recently departed. I can change the local admin passwords easy enough with cusrmgr.exe, but I'm still going to have a lot of leg work to do to log into each system, check services....etc. Anybody been down this road before?
_________________________
I could have made a neat retort but didn't, for I was flurried and didn't think of it till I was downstairs.
-Mark Twain

Top
#158165 - 2006-03-02 05:32 PM Re: NT 4 Domains and accounts
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
You can shorten the leg work in the identification of accounts used by services by using one of my utilities.

http://home.comcast.net/~habullock/Perlutilities.htm

EnumObject.exe - this program will detail all the services and the accounts under which it runs.

Once identified, you can use SC.exe to reconfigure the service remotely.

Code:
c:\data\scripts>sc config /?
Modifies a service entry in the registry and Service Database.
SYNTAX:
sc <server> config [service name] <option1> <option2>...
CONFIG OPTIONS:
NOTE: The option name includes the equal sign.
type= <own|share|interact|kernel|filesys|rec|adapt>
start= <boot|system|auto|demand|disabled>
error= <normal|severe|critical|ignore>
binPath= <BinaryPathName>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <Dependencies(separated by / (forward slash))>
obj= <AccountName|ObjectName>
DisplayName= <display name>
password= <password>



You can also script the enumeration of services and properties filtering such that only the computer and services you desire to seee (ones with that account) are listed and or updated on the spot.

Unfortunately, I do not have any silver platter code to give you at this point.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1471 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.055 seconds in which 0.03 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org