Re: audit administrator login
- From: Meinolf Weber
- Date: Sat, 9 Feb 2008 22:18:44 +0000 (UTC)
Hello erez,
Found this script in another posting for the services, other way is to login to any machine and check the services.msc by hand:
You could use this script and put it into a batch file with a list of your computer names passed as the for-next loop.
START OF SCRIPT:
Const ForAppending = 8
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objLogFile = objFSO.OpenTextFile("c:\scripts\service_list.csv", _ ForAppending, True)
objLogFile.Write _
("System Name,Service Name,Service Type,Service State, Exit " _ & "Code,Process ID,Can Be Paused,Can Be Stopped,Caption," _ & "Description,Can Interact with Desktop,Display Name,Error " _
& "Control, Executable Path Name,Service Started," _ & "Start Mode,Account Name ") objLogFile.Writeline
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colListOfServices = objWMIService.ExecQuery _
("Select * from Win32_Service")
For Each objService in colListOfServices
objLogFile.Write(objService.SystemName) & "," objLogFile.Write(objService.Name) & "," objLogFile.Write(objService.ServiceType) & "," objLogFile.Write(objService.State) & "," objLogFile.Write(objService.ExitCode) & "," objLogFile.Write(objService.ProcessID) & "," objLogFile.Write(objService.AcceptPause) & "," objLogFile.Write(objService.AcceptStop) & "," objLogFile.Write(objService.Caption) & "," objLogFile.Write(objService.Description) & "," objLogFile.Write(objService.DesktopInteract) & "," objLogFile.Write(objService.DisplayName) & "," objLogFile.Write(objService.ErrorControl) & "," objLogFile.Write(objService.PathName) & "," objLogFile.Write(objService.Started) & "," objLogFile.Write(objService.StartMode) & "," objLogFile.Write(objService.StartName) & "," objLogFile.writeline
Next
END OF SCRIPT:
Best regards
Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
Hi all,
what is the best way to audit domain administrator logins ,
interactive or service logins?
i need to change the pass and i'm afraid that many service which run
with that cerdintials will fail.
Erez
.
- Follow-Ups:
- Re: audit administrator login
- From: erez
- Re: audit administrator login
- References:
- audit administrator login
- From: erez
- audit administrator login
- Prev by Date: Mac leopard in a 2003 domain
- Next by Date: Re: Mac leopard in a 2003 domain
- Previous by thread: audit administrator login
- Next by thread: Re: audit administrator login
- Index(es):
Relevant Pages
|