Open-AudIT https://www.open-audit.org/phpBB3/ |
|
[HELP] Audit Script error message on Windows Server 2003 R2 https://www.open-audit.org/phpBB3/viewtopic.php?f=20&t=6532 |
Page 1 of 1 |
Author: | bignick0 [ Wed Jun 08, 2016 10:23 pm ] |
Post subject: | [HELP] Audit Script error message on Windows Server 2003 R2 |
I am attempting to run the version of the VB script that deployed with version 1.12.6 using cscript on a Windows 2003 R2 server. The script begins to execute correctly but then it will usually fail after spending about 2-3 minutes seeming stalled while auditing either Shares or Printers. Is there anything I can do to troubleshoot this error? Please let me know.. Thanks. You are running version 1.12.6 of Open-AudIT. Your Host is: openaudit, and it's OS is Linux. Your database platform is mysql (version 5.7.12). Your web server is Apache/2.4.18 (Fedora) PHP/5.6.22 . Your PHP version is 5.6.22 and it's running in timezone America/New_York. -Nick This is the script output: C:\Documents and Settings\administrator\My Documents>cscript.exe audit_windows.vbs Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. starting audit - . Not pinging target because we're auditing localhost. My PID is : 5424 Audit Start Time : 2016-06-08 08:20:22 Audit Location: local ------------------- system info Get IP Adress of adapter with default route windows info bios info scsi info processor info memory info motherboard info optical info video info monitor info sound info disk info partition info mapped disks info mount point info shares info network card info network address info DNS info printer info C:\Documents and Settings\administrator\My Documents\audit_windows.vbs(2811, 4) Microsoft VBScript runtime error: Invalid use of Null: 'Join' |
Author: | jpa [ Thu Jun 09, 2016 1:57 am ] |
Post subject: | Re: [HELP] Audit Script error message on Windows Server 2003 |
Brute force error handling. I'm not sure what objItem.CapabilityDescriptions is doing. It may be returning a Null which could probably be handled with better code. The fix below should handle anything. Change line 2811 from [code]capabilities = join(objItem.CapabilityDescriptions, ", ")[/code] to [code] capabilities = "" on error resume next capabilities = join(objItem.CapabilityDescriptions, ", ") On Error Goto 0[/code] |
Author: | Mark [ Thu Jun 09, 2016 3:06 am ] |
Post subject: | Re: [HELP] Audit Script error message on Windows Server 2003 |
Thanks guys - fixed for next release. I've also added some error handling to the other items using Win32_Printer that weren't utilising "on error resume next". According to the MS page, Win32_Printer requires Vista/2008 and up. [url]https://msdn.microsoft.com/en-gb/library/aa394363(v=vs.85).aspx[/url] |
Author: | jpa [ Thu Jun 09, 2016 4:15 am ] |
Post subject: | Re: [HELP] Audit Script error message on Windows Server 2003 |
At this point I only have one Windows 2003 SP2 server and Win32_Printer works. I really should get rid of that machine. |
Author: | bignick0 [ Fri Jun 10, 2016 12:24 am ] |
Post subject: | Re: [HELP] Audit Script error message on Windows Server 2003 |
Thanks. I was able to modify the vbscript today and I got my 2003 server to successfully audit! |
Page 1 of 1 | All times are UTC + 10 hours |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |