Well for a one off machine I would do something like

svcutil \\servername\. viewx |grep -i userid

Or if you don't have grep 

svcutil \\servername\. viewx |findstr -i userid 


Svcutil is on www.joeware.net.


F:\DEV\cpp\SvcUtil>svcutil \\.\. viewx |grep -i localservice
File STDIN:
Alerter                   Alerter                                    stopped
MANUAL     NT AUTHORITY\LocalService
ALG                       Application Layer Gateway Service          stopped
MANUAL     NT AUTHORITY\LocalService
LmHosts                   TCP/IP NetBIOS Helper                      running
AUTO       NT AUTHORITY\LocalService
RemoteRegistry            Remote Registry                            running
AUTO       NT AUTHORITY\LocalService
SCardDrv                  Smart Card Helper                          stopped
MANUAL     NT AUTHORITY\LocalService
SCardSvr                  Smart Card                                 running
AUTO       NT AUTHORITY\LocalService
SSDPSRV                   SSDP Discovery Service                     running
MANUAL     NT AUTHORITY\LocalService
upnphost                  Universal Plug and Play Device Host        stopped
MANUAL     NT AUTHORITY\LocalService
UPS                       Uninterruptible Power Supply               stopped
MANUAL     NT AUTHORITY\LocalService
WebClient                 WebClient                                  running
AUTO       NT AUTHORITY\LocalService




Taking that and looping it in perl or batch shouldn't be overwhelming. Hard
part would be generating list of machines you want to run it against but if
you have them all in AD that should also not be too bad. 





-------------
http://www.joeware.net   (download joeware)
http://www.cafeshops.com/joewarenet  (wear joeware)
 
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kern, Tom
Sent: Monday, March 29, 2004 11:38 AM
To: ActiveDir (E-mail)
Subject: [ActiveDir] Services script

Is there a vb or perl script I can run on my network to enumerate all the
services that run under a specfic account on my servers?
I'm running a win2k AD network.
Thanks alot
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to