Click here to get back home

services running under a certain account

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
services running under a certain account Simo Sentissi 08-15-2005
Get Chitika Premium
Posted by Simo Sentissi on August 15, 2005, 9:19 am
Please log in for more thread options
Hello there

I just inherited an environment of servers (win2k , win2k03, sql 2k and some
accounting server apps).
the problem I see is that there are many services that run the account of an
EX-admin.
is there a way of knowing or discovering what services are runnig under a
certain account on remote servers ? snmp ?
or have a list of services and maybe component services and the account they
run under.



thanks a lot !




Posted by Wayne Tilton on August 15, 2005, 9:39 am
Please log in for more thread options

> Hello there
>
> I just inherited an environment of servers (win2k , win2k03, sql 2k
> and some accounting server apps).
> the problem I see is that there are many services that run the account
> of an EX-admin.
> is there a way of knowing or discovering what services are runnig
> under a certain account on remote servers ? snmp ?
> or have a list of services and maybe component services and the
> account they run under.
>
>
>
> thanks a lot !
>
>

This one will list the IDs used by all services on the specified remote
computer (watch for line wrap):

Computer = WScript.Arguments.Item(0)
GetServiceInfo

Sub GetServiceInfo
Dim objWMIService, Items, Item, ServiceName

On Error Resume Next
Set objWMIService = GetObject("winmgmts:\" & Computer & "\root
\cimv2")
If Err then
WScript.Echo Hex(Err.Number) & " " & Err.Description
Exit Sub
End If

Set Items = objWMIService.ExecQuery("SELECT Name, StartName FROM Win32
_Service",,48)
For Each Item in Items
WScript.Echo Item.Name & "," & Item.StartName
Next
End Sub




And this one will list Com+ IDs:

Computer = WScript.Arguments.Item(0)
GetComPlusInfo
'---------------------------------------'
' Get the non-standard COM+ identities. '
'---------------------------------------'
Sub GetComPlusInfo
Dim Catalog, Applications, AppCount, Counter, AppName, IDentity

On Error Resume Next
'Create COMAdminCatalog object and connect to COM+ catalog
Set Catalog = CreateObject("COMAdmin.COMAdminCatalog")
Catalog.Connect(Computer)

'Get the names of COM+ Applications
Set Applications = Catalog.GetCollection("Applications")
Applications.Populate
If Err then
WScript.Echo "Error " & Hex(Err.Number) & " - " & Err.Description
Exit Sub
End If


'Loop through each application.
For Counter = 0 To (Applications.Count - 1)
'Get the identity/name for each application in the collection
AppName = Applications.Item(counter).Value("Name")
IDentity = Applications.Item(Counter).Value("Identity")
WScript.Echo AppName & "," & IDentity
Next

Set Applications = Nothing
Set Catalog = Nothing
End Sub


HTH,

Wayne Tilton


Similar ThreadsPosted
running .bat files January 9, 2008, 11:00 am
bmss.exe running on boot February 26, 2006, 2:56 am
What's danger of running dcgpofix /target:both June 14, 2005, 12:41 pm
Running a program with elevated privilages November 12, 2007, 9:59 am
Issuing of server/client authentication certs from an Ent. CA running on W2k3 Standard Edition May 14, 2007, 2:43 am
Re: Windows Update Agent not found, or the computer is not running Windows 2000 SP3 or later. October 18, 2005, 4:15 pm
SP-1 to a Windows 2003 Server running SQL Server 2000 with out SP- July 5, 2005, 5:20 pm
how to use the user account and the computers account to ... March 9, 2007, 10:38 am
User Account Created - 624 And User Account Enabled - 626 for Hel October 13, 2005, 1:56 pm
App Services password July 6, 2005, 9:46 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap