Logon information?

Logon information?

Post by Dean Harr » Sat, 24 Apr 2004 08:11:13


Hi World,

I am trying to find some software that can analyze the windows security log
and tell me when a user logs on and logs off.....

Does anyone know of anything out there?

Regards,
Dean
 
 
 

1. Problem passing logon information in VBScript

2. Can't change service logon information

This is slightly modified from WMI Code Creator:

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
' Obtain an instance of the the class
' using a key property value.
Set objShare = objWMIService.Get("Win32_Service.Name='MyService'")

' Obtain an InParameters object specific
' to the method.
Set objInParam = objShare.Methods_("Change"). _
inParameters.SpawnInstance_()

' Add the input parameters.
objInParam.Properties_.Item("StartName") = ".\administrator"
objInParam.Properties_.Item("StartPassword") = "password"

' Execute the method and obtain the return status.
' The OutParameters object in objOutParams
' is created by the provider.
Set objOutParams =
objWMIService.ExecMethod("Win32_Service.Name='MyService'", "Change",
objInParam)

' List OutParams
Wscript.Echo "Out Parameters: "
Wscript.echo "ReturnValue: " & objOutParams.ReturnValue

This fails with an exit code 21 (Invalid Parameter).

Am I missing something? Setting the logon information manually in the
service properties does work.

Thanks,
--
Bill Baker

3. Crystal report - failed in changing the Logon information at runtime

4. Outlook: programmatically change the POP3 server and logon information?

5. How do I stop my email logon information to change after restart?

6. fail in changing DB logon information when loading non-typed Crystal Report file

7. how to remove logon information which is applied to crystal report after prining the report

8. prevent sharing of logon information

9. Click here to process your logon information for the network...

10. Outlook doesn't save logon information

11. Why Outlook 2003 sometimes ask for logon information eventhough t.

12. Programmatically change POP3 server and logon information?

13. Windows Server 2008 Last Interactive Logon Information

14. Service not keeping logon information

15. Logon information