|
Newbie |
Joined: Mon Jan 07, 2008 10:23 pm Posts: 2
|
The script terminates with error if i run it from a login script through an unc (e.g. cscript \\server\openaudit\audit.vbs). Calling it direct from the command prompt works fine.
I found the following solution for me: I added in line 45 the sScriptPath to the audit_log file: [code]this_audit_log = sScriptPath & "audit_log.txt"[/code]
I had also to modifiy the script around line 3545 to this:
[code]Set objSWBemServices = GetObject("winmgmts:\\" & strComputer &"\root\cimv2") '(*) Set colSWbemObjectSet = objSWbemServices.InstancesOf("Win32_Service") [/code] The CreateObject("WbemScripting.SWbemLocator") stuff (what seems to be newly introduced) did not work for me. (using svn 07.12.09)
Regards Bernd
|
|