Networking Forums

Networking Forums > Computer Networking > Windows Networking > services running under a certain account

Reply
Thread Tools Display Modes

services running under a certain account

 
 
Simo Sentissi
Guest
Posts: n/a

 
      08-15-2005, 03:19 PM
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 !


 
Reply With Quote
 
 
 
 
Wayne Tilton
Guest
Posts: n/a

 
      08-15-2005, 04:39 PM
"Simo Sentissi" <(E-Mail Removed)> wrote in
news:(E-Mail Removed):

> 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
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
net use on named user failed when running under SYSTEM account fw Windows Networking 9 08-01-2009 02:55 PM
Scan servers in domain for services running as domain admin. briant97 Windows Networking 2 05-27-2008 09:40 PM
running 2 broadband services through 1 bt phone line and use at the same time. Shamen Broadband 4 03-27-2006 05:26 PM
Fedora Core 2 NAT Router freezes when left running with Azurus running on a local machine. Lee Caves Linux Networking 0 11-01-2004 08:45 PM
Creating user fo use of running services Ruby Tuesdays Windows Networking 6 04-22-2004 01:57 PM



1 2 3 4 5 6 7 8 9 10 11