Help..Generic Error-running remote script

Posted: 10-07-2005, 09:59 PM
I have this peice of Code that will connect to a remote computer, gets a list
of all of the sofware installed on it and writes that information to a
database. The problem is it works on some of the computers and not on
others. I thought it (Service Pack 2) would be a firewall issue, i have
checked all of the firewall settings via group policy and it is not turned
on. I have manullly open up the firewall on the local machine but the script
still returns the error message: which is as follows:

Script: File Local for the vbs. script
Line: Line #
Char: 1
Error: Generic Failure
code: 80041001
Source: SWBemObjectSet

I have research just about every site possible and everything is pointing
towards the firewall, any help is greatly appreciated tp get beyond the issue
and add the information to the datbase.

Partial Script: reads a text file with all of the computers in the, stores
the informaiton and then proceeds to get the information and add the records
to the database.

For Each objItem in objDictionary
strComputer = objDictionary.Item(objItem)
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer& "\root\cimv2")
Set colsettings = objWMIService.ExecQuery _
("Select * from Win32_ComputerSystem")
For Each objComputer in colSettings
objRecordSet.AddNew
Set colsoftware = objWMIService.ExecQuery _
("Select * from Win32_Product")
For Each objSoftware in colSoftware
objRecordSet.AddNew
ObjRecordSet("SystemName") = objComputer.Name
objRecordSet("SoftwareName") = objSoftware.Name
objRecordSet("SoftwareVersion") = objSoftware.Version
objRecordSet("SoftwareVendor") = objSoftware.Vendor
objRecordSet.update
Next
Next
Next
objRecordset.Close
objConnection.Close
Reply With Quote

Responses to "Help..Generic Error-running remote script"

 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
(running GetObject to remote winmgmts) while script is embedded in an HTML file james Windows XP WMI 0 05-04-2005 03:27 PM
Remote Access Server script installation Tibo Windows XP Configuration & Management 0 08-19-2004 04:57 PM
PLEASE, SAVE ME: Generic host error (svchhost.exe) Ms.net Windows XP Help & Support 1 08-01-2003 09:07 AM
Running LANgames like Quake, Half Life. What is the best way to remote admin them? ACL Windows XP Work Remotely 1 07-15-2003 06:16 PM
Running LANgames like Quake, Half Life. What is the best way to remote admin them? ACL Windows XP Games 1 07-15-2003 06:16 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90