Open-AudIT
https://www.open-audit.org/phpBB3/

encountered a problem running audit.vbs from login script
https://www.open-audit.org/phpBB3/viewtopic.php?f=8&t=2568
Page 1 of 1

Author:  Bernd [ Fri Jan 11, 2008 8:14 pm ]
Post subject:  encountered a problem running audit.vbs from login script

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

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/