Giter VIP home page Giter VIP logo

windowsagent's Introduction

windowsagent's People

Contributors

allmp13 avatar charleneauger avatar corbinivon avatar damienbelliard avatar drtr0jan avatar gillesdubois avatar gitdevmod avatar jjiglesias avatar lea9250 avatar mikel-in avatar nerijus avatar phil-davis avatar realitix avatar rudylaurent avatar stweil avatar topical avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

windowsagent's Issues

Windows 2003 x64 agent general error

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Operating system : Windows 2003 x64

OCS Inventory informations

Windows agent version : v2.3.1.1

Problem's description

I've just updated to most recent version of OCS Agent and some legacy machine it stop to work,
The error when I try execute is "OCSInventory.exe is not a valid Win32 Application"

Inventory log file ( optional )

Use github cloud or trusted upload website

Send network shares

Hi,

The agent inventories the local hard drives.
It doesn't provide network drives (mounted as a drive on the computer).

Is it possible to list these too ?
It will allow IT to check if all drives are correctly connected

Regards,
Anael

Not all installed softwares are listed

I found that softwares in OCS installed software list is less than the ones in control panel's add/remove softwares. In SysInfo/SysInfo.cpp I found this function BOOL CSysInfo::getInstalledApplications(CSoftwareList *pList, BOOL hkcu) use WMI to fetch installed softwares, which according to http://stackoverflow.com/questions/673233/wmi-installed-query-different-from-add-remove-programs-list, only show softwares installed by msi. I was wondering if it's a better solution to fetch software list from Uninstall Registry Key?

Remove all old reference to the support key in the log file

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Operating system : Windows all version

OCS Inventory informations

Windows agent version : All recent version

Problem's description

When you do an inventory, the log say :
SUPPORT => No support detected, Registration key : N/A

As their is no more support key, this line must be remove

Install Date

I don't see install date
could be retrieve from regedit or wmi
thanks to include this functionnality in the 2.2 version

GetIfTable() in SysInfo/IPHelper.cpp doesn't support unicode characters in the Network adapter's description

The problem is similar #28.

The GetIfTable() function returns ANSI-formatted network adapter's description in the MIB_IFROW structure. But it's recommended to use GetIfTable2() or GetIfTable2Ex() functions which return the Unicode description in the MIB_IF_ROW2 structure.

Ex.:
I've a network adapter with description Гигабитное сетевое подключение Intel(R) 82566DM-2 (Gigabit network adapter Intel(R) 82566DM-2). But I receive <DESCRIPTION>¨£ ¡¨â®¥ á¥â¥¢®¥ ¯®¤ª«î票¥ Intel(R) 82566DM-2</DESCRIPTION> in the WindowsAgent.

Operating system : Windows 8.1 Russian
Windows agent version : 2.3.1.0

Error Code 1062 = The service has not been started

General informations

Operating system :
Windows 10

OCS Inventory informations

Windows agent version :
OCS Windows Agent 2.3.1.1

Problem's description

I am trying to run a build of OCS Windows Agent 2.3.1.1. I am getting this when I press "Run OCS Inventory NG Agent Now" I get this:
Error Code 1062 = The service has not been started

I know that the service has the stopped state but why it is not starting ? What could be wrong here ??
Secondly, If I start the service manually then on pressing "Show Inventory Information":

Failed sending control message to OCS Inventory Service... Error code 109 = The pipe has been ended

Secondly, I don't know can this be a problem with an External Dependencies ?
Because in curl-7.53.1 there is no Makefile.msvc.names. Secondly, it create libcurl.lib and the batch file uses libcurl_imp.lib here
Any help in this regard will be appreciated...

Not all printer are inventoried

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Operating system : W10 64bits

OCS Inventory informations

Windows agent version : 2.3.0

Problem's description

Hello.

My printers are installed on a network print server, and I install the printers on my computer.
And when running the agent, it does not detect networked printers, only local printers. Network printers are not listed on OCS.

captura

regards

Inventory log file ( optional )

Use github cloud or trusted upload website

Exit_code_32 in Windows 10 Agent

Hi,

Im trying to deploy a .bat which contains a .exe installation with OCS (for example winrar.exe). This .bat file basically copy my ".exe" file from a shared folder in the remote PC & then execute it with runas /user:domain\administrador command.

I'd tryed this with action->execute & action->launch .bat but anyway it failed. I get the exit_code_32 on my w10 agent...
Here the logs:

File -> ocsinventory.log

==============================================================================

Starting OCS Inventory NG Agent on Sunday, December 18, 2016 19:45:31.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.3>
AGENT => Sending Prolog
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
AGENT => Inventory required
AGENT => Launching hardware and software checks
AGENT => Communication Server ask for IpDiscover
AGENT => Sending Inventory
INVENTORY => Inventory changed since last run
AGENT => Inventory successfully sent
AGENT =>  Communication Server ask for Package Download
DOWNLOAD => Package <1482084428> added to download queue
DOWNLOAD => Download and setup tool successfully started
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:40.

File -> download.log

==============================================================================
Starting OCS Inventory NG Package Download and Setup Tool on Sunday, December 18, 2016 19:46:11.
DOWNLOAD => Running OCS Inventory NG Download Version 2.1.1.3
DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.1.1.3
DOWNLOAD => Using network connection with Communication Server
DOWNLOAD => Using Communication Provider Version <2.1.1.3>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => Package <1482084428> verified and added to process queue
DOWNLOAD => Downloading package fragment <1482084428-1>
DOWNLOAD => Building package <1482084428>
DOWNLOAD => Executing action for package <1482084428>
ERROR *** DOWNLOAD => Will not register package <1482084428> in history: result <EXIT_CODE_32> not a success
DOWNLOAD => Sending result code <EXIT_CODE_32> for package <1482084428>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => No package found, exiting
DOWNLOAD => Unloading communication provider
DOWNLOAD => Execution duration: 00:10:27.

I've SSL enabled on my server & i can see the download page in my W10 agent.

Any ideas?
Thanks & Regards.

GetAdaptersInfo() in SysInfo/IPHelper.cpp is deprecated since WindowsXP

The GetAdaptersInfo() is deprecated function. It returns ANSI-formatted info instead Unicode. GetAdaptersAddresses() should be used instead.

Ex.:
I've a network adapter with description Гигабитное сетевое подключение Intel(R) 82566DM-2 (Gigabit network adapter Intel(R) 82566DM-2). But I receive <DESCRIPTION>¨£ ¡¨â­®¥ á¥â¥¢®¥ ¯®¤ª«î祭¨¥ Intel(R) 82566DM-2</DESCRIPTION> in WindowsAgent.

WindowsAgent 2.3.0.0

Better Information for Debugging

Problem: Downloading Agent over https

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.
General informations

Operating system : Ubuntu 16.04
OCS Inventory informations

Windows agent version : 2.3.0
Problem's description

I installed the Server (including certificate) and with http everything is working fine.
If i'm trying with https, the ocslogon throws
Downloading file <https://a.b.c.d/ocsinventory/deploy/ocspackage.exe> without server authentication...SendRequest Error: Failed downloading file !

With Firefox seems it ok, I can download the ocspackage.exe, install it and everything is fine...
The Message is not very detailed and should inform about the Reason for not downloading to find a solution.

OcsLogon.log
******************************************************** Starting OCS Inventory NG Logon Installer 2.2.0.0 on 28/02/2017 at 14:09:06 Checking if not already running...OK Parsing command line arguments...OK Searching OCS Inventory NG Agent installed version...OK (0.0.0.0) OCS Inventory NG Agent does not seems to be installed, setup version required.. Download timeout is set to <60000> millisecond. Download does not use HTTP proxy server. Downloading file <https://a.b.c.d/ocsinventory/deploy/ocspackage.exe> without server authentication...SendRequest Error: Failed downloading file !

Device ID generation: Incorrect behavior

General informations

Operating system : Windows 10

OCS Inventory informations

Windows agent version : Master (Debug)

Problem's description

Hello,
My client is using OCSInventory-NG on a large fleet of machines. We found out that when some PC reboot, the device id is reloaded. This is annoying because we are using OCS with GLPI, when the Device ID is reloaded, it creates a duplicate in GLPI.
After lot of digging in the code, here my conclusion of this behavior:

  • In my case, Device ID reloading is done because of MAC addresses.
  • CSysInfo::getNetworkAdapters gets back MAC Address
  • Usually, CIPHelper::GetNetworkAdapters is used to collect MAC, if there is an error, CSNMP::GetNetworkAdapters is used.
    Theses two methods are not working the same ways and returns completely different result.
  • At boot time, sometime, OCS-Agent it started before the Ethernet card is enabled by Windows.
    -> If the card is disabled, CIPHelper::GetNetworkAdapters returns 0 and CSNMP::GetNetworkAdapters is called. Of course it changes the MAC collecting process and Device Id is regenerated.

Why that behavior ?

CIPHelper::GetNetworkAdapters collects only MAC address with interface associated, that's the current algorithm.

Proposal

My proposal allows to get back all Ethernet card although they are not enabled.
Moreover, it is very simple compared to the current alogirythm.

  • Like now, get back IfTable and loop through the MIB_IFROW structures.
  • New filtering: filter only row with dwType == IF_TYPE_ETHERNET_CSMACD and with dwPhysAddrLen == 6.
  • Remove duplicate and we are done !

This is very simple compared to the actual solution and it prevents unexpected id reloading.

I wait for your opinion,
Thanks.

Jean-Sébastien Bevilacqua
Linagora

Windows Agent - Wireless card Inventory malfunction

General informations

Operating system : Windows 10 (1703)

OCS Inventory informations

Windows agent version : 2.3.1.1

Problem's description

The agent does not detect the wireless network adapter unless it is connected to a wireless network.
Attached logs are taken from an HP 850 G3 but this issue is present on other machines too.
If the inventory is run being connected on a lan network the card "Intel(R) Dual Band Wireless-AC 8260" will not be added to the generated XML.

Inventory log

OCSInventory.log
SysInfo.log

OCS newsletter how to remove

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Operating system :Ubuntu 16.04

OCS Inventory informations

Windows agent version : Agent Version 2.3.0.0

Problem's description

Describe your problem here

Informativo do OCS como retirar

image

Inventory log file ( optional )

Use github cloud or trusted upload website

OcsLogon.exe - VirusTotal detecting possible malware

General informations

Operating system : Windows

OCS Inventory informations

Windows agent version : 2.3.0
Product: OCS Inventory NG Logon Installer
File version: 2.2.0.0

Problem's description

I found a file called OcsLogon.exe and scanning it with VirusTotal found possible malware / Trojan code in the binary. I'm not sure if this is accidental or not but it does make it a bit difficult to use in our environment getting this past our security team with fully understanding this.

https://www.virustotal.com/en/file/4dc949286fa5bfaee096a4b6b03d87580863a6d352b54b6b7eff1170b31be7d7/analysis/1496306827/

WMI disk S/N hex encoded translation failed

The WMI disk S/N hex encoded translation has broken after upgrade from 2.1.1.1 to 2.3.0.0.
Bug is similar to the fix #08242c6 (If disk S/N is hex encoded, try todecode it, then ensure S/N is printable before storing it).

Ex., I've the drive with WMI S/N is 434f2d5a393830383753514b3233483057583538, and I've same SN in WindowsAgent 2.3.0.0 (<SERIALNUMBER>434f2d5a393830383753514b3233483057583538</SERIALNUMBER>), but had correct SN in WindowsAgent 2.1.1.1 (<SERIALNUMBER>OCZ-8980S7KQ320HXW85</SERIALNUMBER>) .

The bug is similar to #1353559.

CDMI::DmiString() issue on zero-string

The CDMI::DmiString() function works incorrectly if the second arg is 0.
Ex.:
csAssetTag = DmiString(dmi, pPointer[0x08]);
It can be writing incorrect info (a garbage) to csAssetTag if pPointer[0x08]==0 (Asset Tag Number byte is zero).

WindowsAgent v.2.3 RELEASE

Strange certificates validation behaviour on Windows (7)

General informations

Operating system : Windows 7 64bits

OCS Inventory informations

Windows agent version : 2.3.0.0

Problem's description

Using a cacert.pem on Linux Ubuntu 16.04.2, OCSI agent 2:2.0.5-1, curl 7.47.0 to connect to my ocsinventory server works like a charm

Using the exact same cacert.pem file on Windows 7 64 bits, the agent can't connect, and I get the following error:

WARNING *** COM SERVER => Failed to send HTTP Post request <Peer certificate cannot be authenticated with given CA certificates>

Additional info

I'm renewing my ocsinventory server's certificate.

Unfortunately, our certificate issuer changed (from Comodo to DigiCert). So, the ocsinventory now has to validate the ocsinventory server's certificate against a new CA.

To make the server certificate transition as smooth as possible my plan is to:

  1. Add the new CA certificate to the cacert.pem on all OCSI agents
  2. Once all OCSI agents are updated, change the server's certificate to the new (DigiCert) one
  3. Optionaly, remoev the old CA certificates from all OCSI agents

This plan seems to be perfectly possible on Linux: Adding the new CA certificate to the cacert.pem file on linux allow authenticating both the old and the new server's certificates.

Unfortunately, on my Windows test machine, adding the new CA certificate to the cacert.pem file doesn't allow authenticating both the old and the new server's certificates; Only the original server certificate is validated successfuly. It's like ocsi/libcurl isn't able to skip over the first CA certificates and use the last CA certificate to validate the new server's certificate.

The original cacert.pem file contains 3 certificates, while the new one contains 4 certificates.

Question

Is it the OCSI Windows agent that's not using libcurl properly or some inherent limitation of libcurl on Windows?

Compiling Agent gives Error

capture
Hi All,

Trying to build the Agent Project - Gives the following Errors in CapSnmp.cpp

Severity Code Description Project File Line Suppression State
Error (active) identifier "CSnmpRequest" is undefined Agent \Agent\CapSnmp.cpp

Severity Code Description Project File Line Suppression State
Error (active) identifier "pSnmp" is undefined Agent Agent\CapSnmp.cpp 51

Agent 2.1.1.3 isn't compatible with XP

@sokatra

Agent with Version 2.1.1.2 and 2.1.1.3 and 2.1.1.4 (2.2 alpha) arent compatible with Windows XP

Service can't be installed -

if i start
ocsinventory.exe /SAVE_CONF

i will get immediatly a graphical windows with the following errorcode

C:\Program Files\Ocsinventory Agent\OCSInventory.exe is not a valid win32 application

Don't regenerate deviceid when network interfaces change

I frequently get mysterious duplicates in the database during normal operation. Some investigation led me to this agent log message:

DID_CHECK => MAC Address changed new:<00:00:5E:00:53:01> old:<00:00:5E:00:53:0100:00:00:00:00:0000:00:00:00:00:0000:00:00:00:00:0000:00:5E:00:53:0100:00:5E:00:53:0100:00:5E:00:53:01>
DID_CHECK => Generating new unique ID for device <HOSTNAME>

This led me to the code in Deviceid.cpp which is responsible for generating a new DEVICEID string whenever network interfaces are added or removed. Whatever the cause for the interface changes is, generating a new deviceid makes no sense. I don't see any logical connection between the event and the reaction. In fact, network interfaces coming and going is a pretty normal event, causes including

  • Plugging/unplugging a USB network adapter
  • Using the switch or key combination on a laptop
  • Activating/deactivating virtual interfaces (VPN etc.)

This does not justify the trouble that is caused by a new deviceid. The server's automatic duplicate removal feature is only a partial solution - simply covering up faulty agent behavior fights symptoms, not the cause.

The UNIX agent only regenerates the deviceid if a hostname change is detected (which does make sense as it's part of the ID string), and the Windows agent should behave the same way.

OCS Inventory NG Agent Version 2.3.0.0 not support win10

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Operating system : Centos 7 server , window 10 x64 client

OCS Inventory informations

Windows agent version : OCS Inventory NG Agent Version 2.3.0.0

Problem's description

Describe your problem here
not update in server

Inventory log file ( optional )

Use github cloud or trusted upload website

OCSInventory.txt

OCS agent for MAC

Dear
Please can you provide me a link where to download the ocs inventory agent for MAC 10.12?

Thanks

Teledeployment :Use the advanced options of teledeploy

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Operating system : Window 7 64bit

OCS Inventory informations

Windows agent version : 2.1.1.3

Problem's description

Describe your problem here
TeleDeployment, using advance teledeploy to deploy a file for next day . However after I affect the computer (with advance teledeploy) then proceed to run the agent. The download did not follow scheduled date and proceed to download and deploy the file immediate after agent's inventory ended.

Inventory log file ( optional )

<NAME>DOWNLOAD</NAME>
<PARAM FRAG_LATENCY="3" PERIOD_LATENCY="1" ON="1" TYPE="CONF" CYCLE_LATENCY="5" TIMEOUT="30" PERIOD_LENGTH="10" EXECUTION_TIMEOUT="120" />
<PARAM ID="1487231985" SCHEDULE="//2017-02-18 01:00" 

Use github cloud or trusted upload website

ERR_EXECUTE_TIMEOUT on some deployment

General informations

Operating system : Microsoft Windows 7 Professional

OCS Inventory informations

Windows agent version : OCS-NG_WINDOWS_AGENT_v2.3.0.0

Problem's description

I've a package which reports ERR_EXECUTE_TIMEOUT on some clients.

Is it possible to raise a package's execution timeout?

What is the default execution timeout?

OCS Agent 2.3.1 for Windows - ¿memory leak?

Operating system : Windows 7, 10, 2012 Server
Windows agent version : 2.3.1

I have the Resources Monitor opened and the assigned memory keeps growing, and also, there is a very notorius and evident difference in the memory consumption among several computers revised. Here some data, one for a Windows 10 computer and one for a Windows 2012 Server:

Windows 10 computer

Initital values:
Commit (reserved memory for OcsService): 98 MB
Working Set (memory in use): 13 MB
1 hour later:
Commit (reserved memory for OcsService): 103 MB (+5 MB)
Working Set (memory in use): 17 MB (+4 MB)

Server Windows 2012

Initital values:
Commit (reserved memory for OcsService): 44 MB
Working Set (memory in use): 48 MB
01:20 hours later:
Commit (reserved memory for OcsService): 49 MB (+5 MB)
Working Set (memory in use): 53 MB (+5 MB)

And OcsSystray.exe has: 3 MB reserved, and no more than10 MB of memory used in all computers and servers revised.

Just after restarting the windows 10 computer, and the Resources Monitor shows only:

Commited memory: 6 MB
Working Set: 13 MB

By the way, if I use the Task Manager (taskmgr.exe) instead the Resource Monitor, the values of used memory are (total physical memory reserved for virtual processes):

Windows 10 computer: 4 MB, OcsSystray.exe: 1.5 MB

Well, I revised both a Windows 10 computer and a Windows 2012 Server with OcsAgent 2.3.0 and the commited and working set are just around 5 MB for the first one and 5 and 10 MB for the server. So it seems to me, is there a memory leak bug?

Thank you
memory-usage

Faulting application OCSInventory windows 2003

hi,
my os : windows 2003 E , sp2
error when i restart .
Faulting application OCSInventory.exe, version 2.1.1.1, faulting module msvcr90.dll, version 9.0.30729.6161, fault address 0x00056b1d.
my debug:
WMI Connect: Trying to connect to WMI namespace root\cimv2 on device ...
OK
DMI Connect: Trying to connect to WMI namespace root\WMI on device ...
OK
DMI Connect: Trying to get raw SMBios data...
OK
Registry Connect: Trying to connect to HKEY_LOCAL_MACHINE on device ...
OK
getUserNameFromExplorerProcess: Trying to find logged on User ID from <explorer.exe> process...
<User: cardct>
OK
Registry NT GetLastLoggedUser: Trying to get the last user who'd been logged in...

OK
WMI GetOS: Trying to find Win32_OperatingSystem WMI objects...
<OS: Microsoft Windows Server 2003 Enterprise Edition 5.2.3790 Service Pack 2><Comments: TT_NHNN>
OK (1 objects)
WMI GetAddressWidthOS: Trying to find Win32_Processor WMI objects...
Processor uses 32 bits AddressWidth
Processor uses 32 bits AddressWidth
OK (2 objects)
WMI GetDomainOrWorkgroup: Trying to find Win32_ComputerSystem WMI objects...
<Domain: BIDVBANK.bidv.com>
OK (1 objects)
WMI GetUserDomain: Trying to find Win32_LoggedOnUser WMI objects...
Failed because no Win32_LoggedOnUser object with interactive session found !
Registry NT GetDomainOrWorkgroup...
<Domain: BIDVBANK>
OK
DMI GetBios: Trying to find DMI Structure type 0...
<Manufacturer: Hewlett-Packard><Version: 786E1 v01.10><Date: 04/13/2007>
OK (1 objects)
DMI GetSystemInformation: Trying to find DMI Structure type 1...
<Manufacturer: Hewlett-Packard><Model: HP Compaq dc7700 Small Form Factor><S/N: SGH73205QR>
OK (1 objects)
DMI GetSystemEnclosure: Trying to find DMI Structure type 3...
<Manufacturer: Hewlett-Packard><Type: Low Profile Desktop><S/N: SGH73205QR>
OK (1 objects)
DMI GetBaseBoard: Trying to find DMI Structure type 2...
<Manufacturer: Hewlett-Packard><Model: 0A54h><Version: Hewlett-Packard><S/N: SGH73205QR>
OK (1 objects)
WMI GetCPU: Trying to find Win32_Processor WMI objects...
<Manufacturer: GenuineIntel><Name: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz><Socket: XU1 PROCESSOR><Architecture: x86><NumberOfCores: 1><NumberOfLogicalProcessors: 1><CurrentClockSpeed: 1862><MaxClockSpeed: 1862><L2CacheSize: 2048><AddressWidth: 32><DataWidth: 32><VoltageCaps: ><CpuStatus: CPU Enabled>
<Manufacturer: GenuineIntel><Name: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz><Socket: XU2 PROCESSOR><Architecture: x86><NumberOfCores: 1><NumberOfLogicalProcessors: 1><CurrentClockSpeed: 1862><MaxClockSpeed: 1862><L2CacheSize: 0><AddressWidth: 32><DataWidth: 32><VoltageCaps: ><CpuStatus: Unknown>
OK (2 objects)
getMemory...
<Physical: 2138894336 bytes><Swap: 3582459904 bytes>
OK
DMI GetMemorySlots: Trying to find DMI Structure type 17...
<Caption: ><Description: XMM1><Slot: 1><Capacity: 512><Speed: 667><Type: DDR2><S/N: 87420FDB>
<Caption: ><Description: XMM2><Slot: 2><Capacity: 1024><Speed: 800><Type: DDR2><S/N: 04200000>
<Caption: ><Description: XMM3><Slot: 3><Capacity: 512><Speed: 667><Type: DDR2><S/N: 42741F68>
<Caption: ><Description: XMM4><Slot: 4><Capacity: 0><Speed: 0><Type: DDR2><S/N: >
<Caption: ><Description: SYSTEM ROM><Slot: 5><Capacity: < 1><Speed: 0><Type: FLASH><S/N: SYSTEM ROM>
OK (5 objects)
DMI GetMemorySlots: Trying to find DMI Structure type 16...
OK (5 objects updated)
WMI GetInputDevices: Trying to find Win32_Keyboard WMI objects...
<Type: Keyboard><Manufacturer: ><Caption: Enhanced (101- or 102-key)><Description: Standard 101/102-Key or Microsoft Natural PS/2 Keyboard><Interface: >
<Type: Keyboard><Manufacturer: ><Caption: Enhanced (101- or 102-key)><Description: DameWare Virtual Keyboard Emulation for Standard Keyboard><Interface: >
OK (2 objects)
WMI GetInputDevices: Trying to find Win32_PointingDevice WMI objects...
<Type: Pointing><Manufacturer: Microsoft><Caption: Microsoft PS/2 Port Mouse (IntelliPoint)><Description: Microsoft PS/2 Port Mouse (IntelliPoint)><Interface: PS/2>
OK (1 objects)
WMI GetInputDevices: Trying to find Win32_PnPSignedDriver WMI objects for Smartcard Reader...
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: Microsoft System Management BIOS Driver><Description: Microsoft System Management BIOS Driver><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: Microcode Update Device><Description: Microcode Update Device><Interface: >
<Type: MEDIA><Manufacturer: Microsoft><Caption: Microsoft Kernel System Audio Device><Description: Microsoft Kernel System Audio Device><Interface: >
<Type: MEDIA><Manufacturer: Microsoft><Caption: Microsoft WINMM WDM Audio Compatibility Driver><Description: Microsoft WINMM WDM Audio Compatibility Driver><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: Plug and Play Software Device Enumerator><Description: Plug and Play Software Device Enumerator><Interface: >
<Type: SMARTCARDREADER><Manufacturer: Rainbow Technologies Inc.><Caption: Rainbow iKey Virtual Reader><Description: Rainbow iKey Virtual Reader><Interface: iKey IFD On Slot #4>
<Type: SMARTCARDREADER><Manufacturer: Rainbow Technologies Inc.><Caption: Rainbow iKey Virtual Reader><Description: Rainbow iKey Virtual Reader><Interface: iKey IFD On Slot #3>
<Type: SMARTCARDREADER><Manufacturer: Rainbow Technologies Inc.><Caption: Rainbow iKey Virtual Reader><Description: Rainbow iKey Virtual Reader><Interface: iKey IFD On Slot #2>
<Type: SMARTCARDREADER><Manufacturer: Rainbow Technologies Inc.><Caption: Rainbow iKey Virtual Reader><Description: Rainbow iKey Virtual Reader><Interface: iKey IFD On Slot #1>
<Type: SMARTCARDREADER><Manufacturer: Rainbow Technologies Inc.><Caption: Rainbow iKey Enumerator><Description: Rainbow iKey Enumerator><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: Terminal Server Mouse Driver><Description: Terminal Server Mouse Driver><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: Terminal Server Keyboard Driver><Description: Terminal Server Keyboard Driver><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: Terminal Server Device Redirector><Description: Terminal Server Device Redirector><Interface: >
<Type: NET><Manufacturer: Cisco Systems><Caption: Cisco Systems VPN Adapter><Description: Cisco Systems VPN Adapter><Interface: >
<Type: NET><Manufacturer: Microsoft><Caption: Direct Parallel><Description: Direct Parallel><Interface: >
<Type: NET><Manufacturer: Microsoft><Caption: WAN Miniport (PPTP)><Description: WAN Miniport (PPTP)><Interface: >
<Type: NET><Manufacturer: Microsoft><Caption: WAN Miniport (PPPOE)><Description: WAN Miniport (PPPOE)><Interface: >
<Type: NET><Manufacturer: Microsoft><Caption: WAN Miniport (IP)><Description: WAN Miniport (IP)><Interface: >
<Type: NET><Manufacturer: Microsoft><Caption: WAN Miniport (L2TP)><Description: WAN Miniport (L2TP)><Interface: >
<Type: MEDIA><Manufacturer: (Standard system devices)><Caption: Video Codecs><Description: Video Codecs><Interface: >
<Type: MEDIA><Manufacturer: (Standard system devices)><Caption: Legacy Video Capture Devices><Description: Legacy Video Capture Devices><Interface: >
<Type: MEDIA><Manufacturer: (Standard system devices)><Caption: Media Control Devices><Description: Media Control Devices><Interface: >
<Type: MEDIA><Manufacturer: (Standard system devices)><Caption: Legacy Audio Drivers><Description: Legacy Audio Drivers><Interface: >
<Type: MEDIA><Manufacturer: (Standard system devices)><Caption: Audio Codecs><Description: Audio Codecs><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: Remote Access IP ARP Driver><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: Storage volumes><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: TDTCP><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: TCP/IP Protocol Driver><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: RDPWD><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: RDPCDD><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: Remote Access Auto Connection Driver><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: PCIIde><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: Parvdm><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: Partition Manager><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: Null><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: NetBios over Tcpip><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: NDProxy><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: NDIS Usermode I/O Protocol><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: Remote Access NDIS TAPI Driver><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: NDIS System Driver><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: mountmgr><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: modem><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: mnmdd><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: McAfee Inc. mfetdi2k><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: McAfee Inc. mferkdet><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: McAfee Inc. mfehidk><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: McAfee Inc. mfebopk><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: McAfee Inc.><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: McAfee Inc. mfeavfk><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: McAfee Inc. mfeapfk><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: ksecdd><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: IPSEC driver><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: IP Network Address Translator><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: HTTP><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: Generic Packet Classifier><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: Fips><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: dmload><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: dmboot><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: Cisco Systems Inc. IPSec Driver><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: CRC Disk Filter Driver><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: Beep><Description: ><Interface: >
<Type: LEGACYDRIVER><Manufacturer: ><Caption: AFD Networking Support Environment><Description: ><Interface: >
<Type: KEYBOARD><Manufacturer: DameWare><Caption: DameWare Virtual Keyboard Emulation for Standard Keyboard><Description: DameWare Virtual Keyboard Emulation for Standard Keyboard><Interface: >
<Type: VOLUME><Manufacturer: Microsoft><Caption: Generic volume><Description: Generic volume><Interface: >
<Type: VOLUME><Manufacturer: Microsoft><Caption: Generic volume><Description: Generic volume><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: Volume Manager><Description: Volume Manager><Interface: >
<Type: NET><Manufacturer: Deterministic Networks><Caption: Deterministic Network Enhancer Miniport><Description: Deterministic Network Enhancer Miniport><Interface: >
<Type: NET><Manufacturer: Deterministic Networks><Caption: Deterministic Network Enhancer Miniport><Description: Deterministic Network Enhancer Miniport><Interface: >
<Type: NET><Manufacturer: Deterministic Networks><Caption: Deterministic Network Enhancer Miniport><Description: Deterministic Network Enhancer Miniport><Interface: >
<Type: NET><Manufacturer: Deterministic Networks><Caption: Deterministic Network Enhancer Miniport><Description: Deterministic Network Enhancer Miniport><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: Logical Disk Manager><Description: Logical Disk Manager><Interface: >
<Type: DISPLAY><Manufacturer: DameWare Development><Caption: DameWare Development Mirror Driver><Description: DameWare Development Mirror Driver><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: ACPI Fixed Feature Button><Description: ACPI Fixed Feature Button><Interface: >
<Type: SYSTEM><Manufacturer: Microsoft><Caption: Microsoft Windows Management Interface for ACPI><Description: Microsoft Windows Management Interface for ACPI><Interface: >
<Type: PROCESSOR><Manufacturer: Intel><Caption: Intel Processor><Description: Intel Processor><Interface: >
<Type: PROCESSOR><Manufacturer: Intel><Caption: Intel Processor><Description: Intel Processor><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: ACPI Power Button><Description: ACPI Power Button><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: System board><Description: System board><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: Motherboard resources><Description: Motherboard resources><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: Motherboard resources><Description: Motherboard resources><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: Motherboard resources><Description: Motherboard resources><Interface: >
<Type: CDROM><Manufacturer: (Standard CD-ROM drives)><Caption: CD-ROM Drive><Description: CD-ROM Drive><Interface: 0>
<Type: HDC><Manufacturer: (Standard IDE ATA/ATAPI controllers)><Caption: Secondary IDE Channel><Description: Secondary IDE Channel><Interface: Secondary Channel>
<Type: DISKDRIVE><Manufacturer: (Standard disk drives)><Caption: Disk drive><Description: Disk drive><Interface: 0>
<Type: HDC><Manufacturer: (Standard IDE ATA/ATAPI controllers)><Caption: Primary IDE Channel><Description: Primary IDE Channel><Interface: Primary Channel>
<Type: HDC><Manufacturer: Intel><Caption: Intel(R) ICH8 4 port Serial ATA Storage Controller - 2820><Description: Intel(R) ICH8 4 port Serial ATA Storage Controller - 2820><Interface: PCI bus 0, device 31, function 2>
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: High precision event timer><Description: High precision event timer><Interface: >
<Type: SYSTEM><Manufacturer: Infineon Technologies AG><Caption: Infineon Trusted Platform Module><Description: Infineon Trusted Platform Module><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: Advanced programmable interrupt controller><Description: Advanced programmable interrupt controller><Interface: >
<Type: FDC><Manufacturer: (Standard floppy disk controllers)><Caption: Standard floppy disk controller><Description: Standard floppy disk controller><Interface: >
<Type: PORTS><Manufacturer: (Standard port types)><Caption: Communications Port><Description: Communications Port><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: Printer Port Logical Interface><Description: Printer Port Logical Interface><Interface: LPT1>
<Type: PORTS><Manufacturer: (Standard port types)><Caption: ECP Printer Port><Description: ECP Printer Port><Interface: >
<Type: KEYBOARD><Manufacturer: (Standard keyboards)><Caption: Standard 101/102-Key or Microsoft Natural PS/2 Keyboard><Description: Standard 101/102-Key or Microsoft Natural PS/2 Keyboard><Interface: >
<Type: MOUSE><Manufacturer: Microsoft><Caption: Microsoft PS/2 Port Mouse (IntelliPoint)><Description: Microsoft PS/2 Port Mouse (IntelliPoint)><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: System speaker><Description: System speaker><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: System CMOS/real time clock><Description: System CMOS/real time clock><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: Direct memory access controller><Description: Direct memory access controller><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: System timer><Description: System timer><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: Programmable interrupt controller><Description: Programmable interrupt controller><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: Numeric data processor><Description: Numeric data processor><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: ISAPNP Read Data Port><Description: ISAPNP Read Data Port><Interface: >
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: PCI standard ISA bridge><Description: PCI standard ISA bridge><Interface: PCI bus 0, device 31, function 0>
<Type: NET><Manufacturer: CNet Technology, Inc.><Caption: CNet PRO200 PCI Fast Ethernet Adapter><Description: CNet PRO200 PCI Fast Ethernet Adapter><Interface: PCI bus 7, device 9, function 0>
<Type: SYSTEM><Manufacturer: Intel><Caption: Intel(R) 82801 PCI Bridge - 244E><Description: Intel(R) 82801 PCI Bridge - 244E><Interface: PCI bus 0, device 30, function 0>
<Type: USB><Manufacturer: (Standard USB Host Controller)><Caption: USB Root Hub><Description: USB Root Hub><Interface: >
<Type: USB><Manufacturer: (Standard USB Host Controller)><Caption: Standard Enhanced PCI to USB Host Controller><Description: Standard Enhanced PCI to USB Host Controller><Interface: PCI bus 0, device 29, function 7>
<Type: USB><Manufacturer: (Standard USB Host Controller)><Caption: USB Root Hub><Description: USB Root Hub><Interface: >
<Type: USB><Manufacturer: (Standard USB Host Controller)><Caption: Standard Universal PCI to USB Host Controller><Description: Standard Universal PCI to USB Host Controller><Interface: PCI bus 0, device 29, function 1>
<Type: USB><Manufacturer: (Standard USB Host Controller)><Caption: USB Root Hub><Description: USB Root Hub><Interface: >
<Type: USB><Manufacturer: (Standard USB Host Controller)><Caption: Standard Universal PCI to USB Host Controller><Description: Standard Universal PCI to USB Host Controller><Interface: PCI bus 0, device 29, function 0>
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: PCI standard PCI-to-PCI bridge><Description: PCI standard PCI-to-PCI bridge><Interface: PCI bus 0, device 28, function 0>
<Type: MEDIA><Manufacturer: Realtek><Caption: Realtek High Definition Audio><Description: Realtek High Definition Audio><Interface: Internal High Definition Audio Bus>
<Type: SYSTEM><Manufacturer: Microsoft><Caption: Microsoft UAA Bus Driver for High Definition Audio><Description: Microsoft UAA Bus Driver for High Definition Audio><Interface: PCI bus 0, device 27, function 0>
<Type: USB><Manufacturer: (Standard USB Host Controller)><Caption: USB Root Hub><Description: USB Root Hub><Interface: >
<Type: USB><Manufacturer: (Standard USB Host Controller)><Caption: Standard Enhanced PCI to USB Host Controller><Description: Standard Enhanced PCI to USB Host Controller><Interface: PCI bus 0, device 26, function 7>
<Type: SMARTCARDREADER><Manufacturer: Rainbow Technologies Inc.><Caption: Rainbow iKey 1000><Description: Rainbow iKey 1000><Interface: iKey 1000>
<Type: USB><Manufacturer: (Standard USB Host Controller)><Caption: USB Root Hub><Description: USB Root Hub><Interface: >
<Type: USB><Manufacturer: (Standard USB Host Controller)><Caption: Standard Universal PCI to USB Host Controller><Description: Standard Universal PCI to USB Host Controller><Interface: PCI bus 0, device 26, function 1>
<Type: USB><Manufacturer: (Standard USB Host Controller)><Caption: USB Root Hub><Description: USB Root Hub><Interface: >
<Type: USB><Manufacturer: (Standard USB Host Controller)><Caption: Standard Universal PCI to USB Host Controller><Description: Standard Universal PCI to USB Host Controller><Interface: PCI bus 0, device 26, function 0>
<Type: NET><Manufacturer: Intel><Caption: Intel(R) 82566DM Gigabit Network Connection><Description: Intel(R) 82566DM Gigabit Network Connection><Interface: PCI bus 0, device 25, function 0>
<Type: UNKNOWN><Manufacturer: ><Caption: PCI Simple Communications Controller><Description: ><Interface: PCI bus 0, device 3, function 0>
<Type: MONITOR><Manufacturer: (Standard monitor types)><Caption: Default Monitor><Description: Default Monitor><Interface: >
<Type: DISPLAY><Manufacturer: (Standard display types)><Caption: Standard VGA Graphics Adapter><Description: Standard VGA Graphics Adapter><Interface: PCI bus 0, device 2, function 0>
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: PCI standard host CPU bridge><Description: PCI standard host CPU bridge><Interface: PCI bus 0, device 0, function 0>
<Type: SYSTEM><Manufacturer: (Standard system devices)><Caption: PCI bus><Description: PCI bus><Interface: >
<Type: SYSTEM><Manufacturer: Microsoft><Caption: Microsoft ACPI-Compliant System><Description: Microsoft ACPI-Compliant System><Interface: >
<Type: COMPUTER><Manufacturer: (Standard computers)><Caption: ACPI Multiprocessor PC><Description: ACPI Multiprocessor PC><Interface: >
<Type: ><Manufacturer: ><Caption: ><Description: ><Interface: >
<Type: ><Manufacturer: ><Caption: ><Description: ><Interface: >
<Type: ><Manufacturer: ><Caption: ><Description: ><Interface: >
<Type: ><Manufacturer: ><Caption: ><Description: ><Interface: >
OK (6 objects)
DMI GetSystemPorts: Trying to find DMI Structure type 8...
<Name: SATA0><Type: Other><Caption: SATA0 None><Description: None>
<Name: SATA1><Type: Other><Caption: SATA1 None><Description: None>
<Name: SATA2><Type: Other><Caption: SATA2 None><Description: None>
<Name: COM A><Type: Serial Port 16550A Compatible><Caption: COM A DB-9 pin male><Description: DB-9 pin male>
<Name: SERIAL B><Type: Serial Port 16550A Compatible><Caption: SERIAL B DB-9 pin male><Description: DB-9 pin male>
<Name: PARALLEL><Type: Parallel Port ECP/EPP><Caption: PARALLEL DB-25 pin female><Description: DB-25 pin female>
<Name: USB 1><Type: USB><Caption: USB 1 Access Bus (USB)><Description: Access Bus (USB)>
<Name: USB 2><Type: USB><Caption: USB 2 Access Bus (USB)><Description: Access Bus (USB)>
<Name: USB 3><Type: USB><Caption: USB 3 Access Bus (USB)><Description: Access Bus (USB)>
<Name: USB 4><Type: USB><Caption: USB 4 Access Bus (USB)><Description: Access Bus (USB)>
<Name: USB 5><Type: USB><Caption: USB 5 Access Bus (USB)><Description: Access Bus (USB)>
<Name: USB 6><Type: USB><Caption: USB 6 Access Bus (USB)><Description: Access Bus (USB)>
<Name: USB 7><Type: USB><Caption: USB 7 Access Bus (USB)><Description: Access Bus (USB)>
<Name: USB 8><Type: USB><Caption: USB 8 Access Bus (USB)><Description: Access Bus (USB)>
<Name: KEYBOARD><Type: Keyboard Port><Caption: KEYBOARD PS/2><Description: PS/2>
<Name: MOUSE><Type: Mouse Port><Caption: MOUSE PS/2><Description: PS/2>
<Name: REAR LINE IN><Type: Audio Port><Caption: REAR LINE IN Mini-DIN><Description: Mini-DIN>
<Name: VIDEO><Type: Video Port><Caption: VIDEO DB-15 pin female><Description: DB-15 pin female>
<Name: REAR HEADPHONE/LINEOUT><Type: Audio Port><Caption: REAR HEADPHONE/LINEOUT Mini-DIN><Description: Mini-DIN>
<Name: RJ45><Type: Network Port><Caption: RJ45 RJ-45><Description: RJ-45>
<Name: CPU FAN><Type: Other><Caption: CPU FAN None><Description: None>
<Name: FLOPPY><Type: None><Caption: FLOPPY None><Description: None>
<Name: FRONT HEADPHONE/LINEOUT & MIC><Type: Audio Port><Caption: FRONT HEADPHONE/LINEOUT & MIC Mini-DIN><Description: Mini-DIN>
<Name: CHASSIS FAN><Type: Other><Caption: CHASSIS FAN None><Description: None>
<Name: SPEAKER (SPKR)><Type: Other><Caption: SPEAKER (SPKR) None><Description: None>
<Name: PASSWORD CLEAR (PSWD)><Type: Other><Caption: PASSWORD CLEAR (PSWD) None><Description: None>
<Name: HOOD SENSE (HSENSE)><Type: Other><Caption: HOOD SENSE (HSENSE) None><Description: None>
<Name: HOOD LOCK (HLCK)><Type: Other><Caption: HOOD LOCK (HLCK) None><Description: None>
<Name: POWER BUTTON><Type: Other><Caption: POWER BUTTON None><Description: None>
OK (29 objects)
DMI GetSystemSlots: Trying to find DMI Structure type 9...
<Name: PCI1><Slot: PCI1><Type: PCI (data bus width 32 bits)>
<Name: PCI2><Slot: PCI2><Type: PCI (data bus width 32 bits)>
<Name: PCI EXPRESS x1 SLOT/PCIEx1><Slot: PCI EXPRESS x1 SLOT/PCIEx1><Type: PCI Express (data bus width 1x or x1)>
<Name: PCI EXPRESS x16 SLOT/PCIEx16><Slot: PCI EXPRESS x16 SLOT/PCIEx16><Type: PCI Express (data bus width 16x or x16)>
OK (4 objects)
WMI GetSystemControllers: Trying to find Win32_FloppyController WMI objects...
<Manufacturer: (Standard floppy disk controllers)><Caption: Standard floppy disk controller><Description: Standard floppy disk controller><Name: Standard floppy disk controller><Type: Floppy Controller><Version: >
OK (1 objects)
WMI GetSystemControllers: Trying to find Win32_IDEController WMI objects...
<Manufacturer: Intel><Caption: Intel(R) ICH8 4 port Serial ATA Storage Controller - 2820><Description: Intel(R) ICH8 4 port Serial ATA Storage Controller - 2820><Name: Intel(R) ICH8 4 port Serial ATA Storage Controller - 2820><Type: IDE Controller><Version: >
<Manufacturer: (Standard IDE ATA/ATAPI controllers)><Caption: Primary IDE Channel><Description: Primary IDE Channel><Name: Primary IDE Channel><Type: IDE Controller><Version: >
<Manufacturer: (Standard IDE ATA/ATAPI controllers)><Caption: Secondary IDE Channel><Description: Secondary IDE Channel><Name: Secondary IDE Channel><Type: IDE Controller><Version: >
OK (3 objects)
WMI GetSystemControllers: Trying to find Win32_SCSIController WMI objects...
Failed because no Win32_SCSIController object !
WMI GetSystemControllers: Trying to find Win32_InfraredDevice WMI objects...
Failed because no Win32_InfraredDevice object !
WMI GetSystemControllers: Trying to find Win32_USBController WMI objects...
<Manufacturer: (Standard USB Host Controller)><Caption: Standard Universal PCI to USB Host Controller><Description: Standard Universal PCI to USB Host Controller><Name: Standard Universal PCI to USB Host Controller><Type: USB Controller><Version: >
<Manufacturer: (Standard USB Host Controller)><Caption: Standard Universal PCI to USB Host Controller><Description: Standard Universal PCI to USB Host Controller><Name: Standard Universal PCI to USB Host Controller><Type: USB Controller><Version: >
<Manufacturer: (Standard USB Host Controller)><Caption: Standard Enhanced PCI to USB Host Controller><Description: Standard Enhanced PCI to USB Host Controller><Name: Standard Enhanced PCI to USB Host Controller><Type: USB Controller><Version: >
<Manufacturer: (Standard USB Host Controller)><Caption: Standard Universal PCI to USB Host Controller><Description: Standard Universal PCI to USB Host Controller><Name: Standard Universal PCI to USB Host Controller><Type: USB Controller><Version: >
<Manufacturer: (Standard USB Host Controller)><Caption: Standard Universal PCI to USB Host Controller><Description: Standard Universal PCI to USB Host Controller><Name: Standard Universal PCI to USB Host Controller><Type: USB Controller><Version: >
<Manufacturer: (Standard USB Host Controller)><Caption: Standard Enhanced PCI to USB Host Controller><Description: Standard Enhanced PCI to USB Host Controller><Name: Standard Enhanced PCI to USB Host Controller><Type: USB Controller><Version: >
OK (6 objects)
WMI GetSystemControllers: Trying to find Win32_1394Controller WMI objects...
Failed because no Win32_1394Controller object !
WMI GetSystemControllers: Trying to find Win32_PCMCIAController WMI objects...
Failed because no Win32_PCMCIAController object !
WMI GetStoragePeripherals: Trying to find Win32_FloppyDrive WMI objects...
Failed because no Win32_FloppyDrive object !
WMI GetStoragePeripherals: Trying to find Win32_DiskDrive WMI objects...
<Manufacturer: (Standard disk drives)><Caption: WDC WD1600JS-60MHB5><Description: Disk drive><Name: //./PHYSICALDRIVE0><MediaType: Fixed hard disk media><Size: 152625><S/N: WD-WCANMK431628><FirmwareRevision: 10.02E04>
OK (1 objects)
WMI GetStoragePeripherals: Trying to find Win32_CDROMDrive WMI objects...
<Manufacturer: (Standard CD-ROM drives)><Caption: TSSTcorp DVD-ROM TS-H353A><Description: CD-ROM Drive><Name: TSSTcorp DVD-ROM TS-H353A><MediaType: CD-ROM><Size: ><S/N: ><RevisionLevel: >
OK (1 objects)
WMI GetStoragePeripherals: Trying to find Win32_TapeDrive WMI objects...
Failed because no Win32_TapeDrive object !
WMI GetLogicalDrives: Trying to find Win32_LogicalDisk WMI objects...
<Drive: C:><Type: Hard Drive><Filesystem: NTFS><size: 80011 MB><Free Space: 62019 MB>
<Drive: D:><Type: Hard Drive><Filesystem: NTFS><size: 72614 MB><Free Space: 10310 MB>
<Drive: E:><Type: CD-Rom Drive><Filesystem: ><size: 0 MB><Free Space: 0 MB>
OK (3 objects)
WMI GetSoundDevices: Trying to find Win32_SoundDevice WMI objects...
<Manufacturer: Realtek><Name: Realtek High Definition Audio><Description: Realtek High Definition Audio><StatusInfo: 3>
OK (1 objects)
WMI GetModems: Trying to find Win32_POTSModem WMI objects...
Failed because no Win32_POTSModem object !
Registry NT GetModems: Trying to find Modem in HKLM\SYSTEM\CurrentControlSet\Control\Class{4D36E96D-E325-11CE-BFC1-08002BE10318}...
Failed in call to function to find subkey of HKLM\SYSTEM\CurrentControlSet\Control\Class{4D36E96D-E325-11CE-BFC1-08002BE10318}.
IpHlpAPI GetNetworkAdapters...
IpHlpAPI GetNetworkAdapters: Calling GetIfTable to determine network adapter properties...OK
IpHlpAPI GetNetworkAdapters: Calling GetAdapterInfo to determine IP Infos...OK
IpHlpAPI GetNetworkAdapters: OK (3 objects).
WMI GetPrinters: Trying to find Win32_Printer WMI objects...
<Name: Microsoft XPS Document Writer (from DIENTOAN-PC) in session 1><Driver: Microsoft XPS Document Writer><Port: TS007><Server: ><Share: ><Resolution: 600 x 600><Comment: ><Shared: No><Network: No>
<Name: HP LaserJet P2050 Series PCL6 on 10.141.2.35 (from DIENTOAN-PC) in session 1><Driver: HP LaserJet P2050 Series PCL6><Port: TS002><Server: ><Share: ><Resolution: 600 x 600><Comment: ><Shared: No><Network: No>
<Name: HP LaserJet P2055d UPD PCL 5 on 10.141.2.35 (from DIENTOAN-PC) in session 1><Driver: HP LaserJet P2050 Series PCL6><Port: TS001><Server: ><Share: ><Resolution: 600 x 600><Comment: ><Shared: No><Network: No>
OK (3 objects)
WMI GetVideoAdapters: Trying to find Win32_VideoController WMI objects...
<Description: Standard VGA Graphics Adapter><VideoProcessor: Intel(r)Broadwater-G Graphics Chip Accelerated VGA BIOS><Memory: 7><Resolution: 1024 x 768>
<Description: DameWare Development Mirror Driver><VideoProcessor: ><Memory: 0><Resolution: 0 x 0>
OK (2 objects)
SetupAPI Connect: Trying to connect to SetupAPI on device ...OK.
SetupAPI: Enumerating DISPLAY devices...
SetupAPI: RegQueryValueEx failed with error 2.
SetupAPI: Enumerates DISPLAY devices finished (1 objects)...
SetupAPI: Enumerating MONITOR devices...
SetupAPI: SetupDiGetClassDevs MONITOR failed with error 87.
SetupAPI: Enumerates MONITOR devices finished (0 objects)...
WMI GetMonitors: Trying to find Win32_DesktopMonitor WMI objects...

The SSL, the curl and cacert.pem

Hi,

I have some issue here.
I wasn't able to comunicate with my OCS server because of this error :

WARNING *** COM SERVER => Failed to send HTTP Post request <Problem with the SSL CA cert (path? access rights?)>

The cacert.pem file exists, and available in %programdata%\OCS Inventory NG\Agent directory.
In my configuration file, i've tried absolute and relative pathes to certificate, but error is stil there.

Thanks for your time.
FatCyclone

Infos : Windows 10 Pro, OCS Agent Version 2.1.1.3, Wildcard cacert from some CA authority.
EDIT : All is working with mac OSX (Same config, and same cacert.pem file).

Confusing installed softwares list

General informations

Operating system : Windows 7

OCS Inventory informations

Windows agent version : 2.3.0.0

Problem's description

The method used to get the list of softwares installed only reports partially about installed Microsfot Updates; It seems that the installed Office updates are reported properly, while the Windows updates are simply not listed at all.

Having only office updates listed here is confusing as it lead us to believe all Microsoft updates are listed here, while it is clearly not the case.

Additional details

The method used to get the list of softwares installed is to query the SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall registry hive (GetRegistryApplicationsNT method in Registry.cpp). However, this part of the registry doesn't list Windows updates on Windows 7 (and later?).

Possible solutions

It seems that from Windows 7, windows updates are to be found via other means (see https://stackoverflow.com/questions/5102900/registry-key-location-for-security-update-and-hotfixes)

Request: OCS WindowsAgent IPv6 support for OCS server access and communication.

For our mobile clients we're using Microsoft DirectAccess technology for them to be connected with the corporate network.

Initially DirectAccess has been designed as an IPv6 based service only but newer releases allow clients to connect to internal IPv4 resources. In this situation the DirectAccess clients are configured with a DNS name resolution policy to use the DirectAccess server as a DNS service for the corporate internal domains only. The DirectAccess Windows client now automatically uses the DirectAccess DNS server to resolve the internal domains.

In case a client resolves a target that is IPv4 only the DirectAccess DNS server provides a "generated" IPv6 address to the client and takes care of 6to4 address translation.

This limits DirectAccess clients to only connect to internal IPv4 resources using their FQDN instead of their IPv4 IP address.
For local corporate systems and servers to initiate a connection towards a DirectAccess client native IPv6 is still required.

The OCS Windows agent (2.1.1.3) currently cannot send the Prolog to the internal OCS server for DirectAccess connected clients since it always seems to "resolve" to the internal IPv4 IP address (That is not accessible on IP bases for a DirectAccess client) though the OCS agent has been configured to use the FQDN.

The OCS Agent like any other application or CLI should simply use the IPv6 AAAA record in case one exists for the FQDN of the OCS servers or it should respect the DNS name resolution policy and use the DirectAccess server as a DNS server to acquire an IPv6 address and allow 6to4 address translation.

Normally this mechanism is automatically being done by the Windows client network layer. I'm not sure why this does not happen for the OCS Windows client. (Maybe because it does not support IPv6 at all for this process or it caches the IP address when the client is directly IPv4 connected to the internal corporate network?)

In general I can imagine that the requirement for future IPv6 implementations is raising in spite of the use of DirectAccess.

Thanks in advance for your support and thank you for providing this great product!

Not all printers are listed

Hello,

Network printers are not listed on OCS (agent v2.1.1.1)
See on a W10 64 bits computer, also on many (>25) computers on W7 pro 32 & 64 bits
On windows :
windows
On OCS :
ocs

Regards,
Anael

OCSInventory 2.3.1.0 seems to ignore "other" network adapter

General informations

Operating system : windows

OCS Inventory informations

Windows agent version : 2.3.1.0

Problem's description

Starting with OCS 2.3.1.0, the inventory only list wired network adapter. It no longer list wifi, bluetooth, other network adapters.

Anyway, thank you for the great (and hard) work

Help

Thank you for this excellent tool. There will be a plugin to get the report from the local printers installed?. Regards!

Where TAG value is Stored:

Hello, i'm writing a Puppet Module to install ocsinventory on Windows 10. I would like to know where this value is store, i can't find the location.

Thank you.

Installer for Agent v2.1.1.3 failed

Hello,

On a w7 pro 64bits computer (internal : 181) :


Creating directory <C:\ProgramData\OCS Inventory NG\Agent>...
Création du dossier : C:\ProgramData\OCS Inventory NG\Agent
Création du dossier : C:\ProgramData\OCS Inventory NG\Agent\Download
SetACL allowing Users / Power users read/write permissions on <C:\ProgramData\OCS Inventory NG\Agent>.
Result: error
SetACL propagating inherited permissions on <C:\ProgramData\OCS Inventory NG\Agent\Download>.
Result: error
Trying to determine if service was previously installed.
Yes.
Trying to stop service and kill processes...
Is Service running.
Yes.
Trying to stop Service .
Ok
Is Service running.
No - Waiting 1 second(s) for Service to stop...
Trying to kill process OcsSystray.exe...Result: 0
Trying to kill process OcsSystray.exe...Result: 603
Trying to kill process OcsService.exe...Result: 603
Trying to kill process OCSInventory.exe...Result: 603
Trying to kill process download.exe...Result: 603
Trying to kill process inst32.exe...Result: 603
Waiting 10 seconds for processes to terminate...
Copying new files to directory <C:\Program Files (x86)\OCS Inventory Agent>...
Destination : C:\Program Files (x86)\OCS Inventory Agent
Windows XP or higher detected, installing default cURL library and MS CRT/MFC 9.0...
Extraction : libcurl.dll

Impossible d'écrire : C:\Program Files (x86)\OCS Inventory Agent\libeay32.dll

The problem is the same if the previous agent v2.1.1.1 is manually uninstalled before.
No problem for reinstalling v2.1.1.1 agent

Regards

Software counted multiple times

Operating system : Win7 Prof. SP1 (6.1.7601)
Windows agent version : Release 2.3.0.0

The way the agent is counting installed programs is wrong in some cases. For example, it's listing a single program on my PC twice with these IDs.

{054A5F46-6DCE-4D09-8BC0-170428A4ED56}
{054A5F46-6DCE-4D09-8BC0-170428A4ED56}Visible

It's even worse with MS office, which is listed 14 times. This is problematic as the ocs inventory groups software by (display)name. It ends up reporting multiple instances on my computer, although in reality there's only one.

It would be nice to address that issue somehow. Having a brief look at the project repo I noticed that WMI is already utilized to some extent. WMI can perfectly retrieve the list of installed products without duplicates:
wmic /OUTPUT:%temp%\Installs.txt PRODUCT GET Name,Version

Thanks a lot.

upgrade openssl library

Windows agent installs with ssleay32 & libeay32 from openssl 1.0.0s which doesn't support tls1.2. Is it possible to get this upgraded the openssl library to 1.0.2 to support tls1.2 communication?

Bad datas send for CPU

Hello,

I have new computers which are inventoried as :

  • PROCESSORT : AMD A4 PRO-7300B APU with Radeon HD Graphics [1 core(s) x86_64]
  • PROCESSORN : 1
  • USERAGENT : OCS-NG_WINDOWS_AGENT_v2.1.1.1

This processor type is dual core : http://processors.specout.com/l/1834/AMD-A4-PRO-7300B / http://www.ldlc.com/fiche/PB00173128.html

Same problem for :

  • PROCESSORT : AMD Athlon(tm) II X2 B24 Processor [2 core(s) x86_64]
  • PROCESSORN : 1
  • USERAGENT : OCS-NG_WINDOWS_AGENT_v2.1.1.1
  • PROCESSORT : AMD Athlon(tm) II X2 215 Processor [2 core(s) x86_64]
  • PROCESSORN : 1
  • USERAGENT : OCS-NG_WINDOWS_AGENT_v2.1.1.1
  • PROCESSORT : AMD Athlon(tm) Dual Core Processor 4450B [2 core(s) x86_64]
  • PROCESSORN : 1
  • USERAGENT : OCS-NG_WINDOWS_AGENT_v2.1.1.1

Could you, please, advise for these problems ?

Regards

ERROR *** DOWNLOAD => Cannot lock directory <C:\ProgramData\OCS Inventory NG\Agent\download>

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Operating system : server ocs 2.3.1 (on debian jessie), client - windows 10 pro ver.2.3.1.1

OCS Inventory informations

Windows agent version : 2.3.1.1

Problem's description

Everything was working properly and the packages were also installed without a problem until now. On client stations on which Microsoft has updated Windows 10 to ver.1703, there is a problem with the lockdown of the download directory. The first installation package is done and can no longer lock the download directory.

The strangest thing is that it does not help to disable the "OCS Inventory Service" service at the client station and remove the download directory (c: \ ProgramData \ OCS Inventory NG \ Agent \ Download) because the "lock" file is still being used by another application / process (and is not is the download.exe process).

Any idea? The situation is starting to frustrate.

Inventory log file ( optional ) - download.log

==============================================================================
Starting OCS Inventory NG Package Download and Setup Tool on Wednesday, December 06, 2017 06:23:42.
DOWNLOAD => Running OCS Inventory NG Download Version 2.3.1.1
DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.3.1.1
DOWNLOAD => Using network connection with Communication Server
DOWNLOAD => Using Communication Provider Version <2.3.1.1>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => No package found, exiting
DOWNLOAD => Unloading communication provider
DOWNLOAD => Execution duration: 00:00:00.

==============================================================================
Starting OCS Inventory NG Package Download and Setup Tool on Wednesday, December 06, 2017 07:24:44.
DOWNLOAD => Running OCS Inventory NG Download Version 2.3.1.1
DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.3.1.1
DOWNLOAD => Using network connection with Communication Server
DOWNLOAD => Using Communication Provider Version <2.3.1.1>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => Package <1510236830> verified and added to process queue
DOWNLOAD => Downloading package fragment <1510236830-1>
DOWNLOAD => Building package <1510236830>
DOWNLOAD => Executing action for package <1510236830>
DOWNLOAD => Sending result code for package <1510236830>
ERROR *** DOWNLOAD => Cannot lock directory <C:\ProgramData\OCS Inventory NG\Agent\download>
DOWNLOAD => Unloading communication provider
DOWNLOAD => Execution duration: 00:10:45.

Unable to compile OCS-NG_Windows_Agent_Setup.nsi (msvcr140.dll is missing)

General informations

Operating system : Windows 10 Enterprise
+
Microsoft Visual C++ 2005 SP1 Redistributable (x86)
Microsoft Visual C++ 2005 SP1 Redistributable (x64)
Microsoft Visual C++ 2008 SP1 Redistributable (x86)
Microsoft Visual C++ 2008 SP1 Redistributable (x64)
Microsoft Visual C++ 2010 SP1 Redistributable (x86)
Microsoft Visual C++ 2010 SP1 Redistributable (x64)
Microsoft Visual C++ 2012 Update 4 Redistributable (x86 and x64)
Microsoft Visual C++ 2013 Redistributable (x86 and x64)
Microsoft Visual C++ 2015 Redistributable (x86 and x64)

OCS Inventory informations

Windows agent version : Current from Github

Problem's description

I have tried to compile OCS-NG_Windows_Agent_Setup.nsi but it failed on:
Error in script "...OCS-NG_Windows_Agent_Setup.nsi" on line 1602 -- aborting creation process

Call Write_Log strcpy $installSatus ":(" clearerrors File "C:\Windows\System32\msvcr140.dll" Iferrors 0 +5

according to:

"msvcr140.dll no longer exists. It is replaced by a trio of DLLs: vcruntime140.dll, appcrt140.dll, and desktopcrt140.dll."

from MS support sites, think that this is issue to use discontinued library or I am wrong ?

Wrong UUID is shown at Agent

Hello!

On an Inventoried Computer (Windows Server 2008 R2 Enterprise SP1), i have installed OCS-Agent 2.1.0.3. When i check the Hardware-UUID (at cmd: wmic PATH Win32_ComputerSystemProduct get uuid), i get this output:

UUID
0D977C6C-FA6C-27E6-6CFA-E6277070170E

Buth when i tell OCS-Agent to show me the Inventory-Information (OCSInventory.xml), the UUID is:

6C7C970D-6CFA-E627-6CFA-E6277070170E

You see, the first 3 parts of the UUID are shuffled around.

At the OCS-Server 2.1.1, the transmitted UUID is also:

6C7C970D-6CFA-E627-6CFA-E6277070170E

Can you fix this problem? Do you need further information?

Feature Request:

Maybe it could be a good solution, when you take the Windows-UUID to identify the Computer on Windows Systems. You can find it here:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography

MachineGuid

Storage information not correct

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Operating system : Window 7

OCS Inventory informations

Windows agent version : 2.1.1.3

Problem's description

Describe your problem here
About the Storage information Name and Model is being swap.
Check the query on Win32_DiskDrive is show the different.

Inventory log file ( optional )

Use github cloud or trusted upload website
image
image

WMI GetHotFixes randomly report 0 objects

Hello,

We have an issue with OCS Windows agent on Windows Vista and W7 devices (several hundreds) :
"Randomly" hotfixe are not reported in the SOFTWARES table.
In file SysInfo.log with debug level 2 activated we see :


WMI GetHotFixes: Trying to find Win32_QuickFixEngineering WMI objects...
    OK (0 objects)

Notice that the issue is not seen on Windows 8.1 and Windows 10 devices.

We first discovered the issue with devices having agent 2.1.1.1 but have the same symptoms with agent 2.1.1.3.

As recommended is the changelog , we tried to install all the hotfixes of KB 2591403 but this didn't resolve the issue.
If we try to force an inventory on a device having reported no hotfixe, it may once report the hotfixes... or not :-)

As OCS is linked to a GLPI instance, the glpi_logs table is growing very fast.
For the impacted devices, we indeed find around 300 "software installation" logs if OCS did not report the hotfixes and again around 300 "software installation" logs if this time OCS reported the hotfixes.

We discovered that if we try and run an inventory just after a windows logon, ocs agent mainly fails to report the hotfixes.

We then thought it could be a timeout of WMI and tried to run these simple commands just after Windows logon :

date
gwmi Win32_QuickFixEngineering | select Description, Hotfixid
date

The "gwmi" command answer in more than on minute on devices having this issue.

So we dived in the code and saw the following :

Wmi.cpp :


    AddLog( _T( "WMI GetHotFixes: Trying to find Win32_QuickFixEngineering WMI objects...\n"));
    try
    {
        CSoftware   myObject;
        UINT        uIndex = 0;
        CString     csBuffer1, csBuffer2;

        if (m_dllWMI.BeginEnumClassObject( _T( "Win32_QuickFixEngineering")))
        {
            while (m_dllWMI.MoveNextEnumClassObject())
            {
[...]
                uIndex ++;
            }
            m_dllWMI.CloseEnumClassObject();
            AddLog( _T( "\tOK (%u objects)\n"), uIndex);
            return TRUE;
        }
        AddLog( _T( "\tFailed because no Win32_QuickFixEngineering object !\n"));
        return FALSE;
    }
    catch (CException *pEx)
    {
        pEx->Delete();
        AddLog( _T( "\tFailed because unknown exception !\n"));
        return FALSE;
    }

Conclusion : MoveNextEnumClassObject doesn't return an exception and mot probably report false, and uIndex keep it's initialization value of 0.
No timeout is found in this cpp.

Having a look at OcsWmi.cpp :

BOOL COcsWmi::MoveNextEnumClassObject()
{
    ASSERT( m_pEnumClassObject);

    try
    {
        ULONG uReturned = 1;

        if (m_pClassObject)
            m_pClassObject->Release();
        m_pClassObject = NULL;

        // Enumerate through the resultset.
        m_hResult = m_pEnumClassObject->Next( 30000,            // Timeout 30 s
                                              1,                // Return just one storage device
                                              &m_pClassObject,  // Pointer to storage device
                                              &uReturned);      // Number obtained: one or zero
        if (SUCCEEDED( m_hResult) && (uReturned == 1))
            return TRUE;
        return FALSE;
    }
    catch (CException *pEx)
    {
        pEx->Delete();
        m_hResult = WBEM_E_FAILED;
        return FALSE;
    }
}

Here we find the 30 s timeout of MoveNextEnumClassObject.
If timeout reached, no exception is returned rather "FALSE".

So, maybe we are not correct but it seems to us that if wmi is too long (for example if inventory is run a short time after logon), MoveNextEnumClassObject return False and CWmi::GetHotFixes return 0 objects.

We don't have any tool or knowledge to recompile the agent with a bigger timeout value.
Could someone provide us with a test agent having a 2 minutes (120000) timeout in COcsWmi::MoveNextEnumClassObject in order to check if it resolve the issue ?

Thanks in advance.

Sylvie

Trouble with ocsinventory.exe plugins and UNC path

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Operating system : Windows 10 or Windows 7

OCS Inventory informations

Windows agent version : 2.3.1

Problem's description

If OCS Inventory agent is launched from a UNC path with vbs or ps1 plugins, those plugins' xml have the following preceding lines: "CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Window directory.". As result, plugins xmls are not included in final agent's xml (ocsinventory.log: ERROR *** EXECUTABLE PLUGIN => Executable plugin <\UNC PATH\script.vbs> output is not a valid XML document)
Powershell scripts seem to be run from a cmd.exe calling powershell.exe with similar result.

Solution 1: map a network drive and run ocsinventory.exe from there. Not always desirable
Solution 2: reg add “HKCU\Software\Microsoft\Command Processor” /v DisableUNCCheck /t REG_DWORD /d 0x1 /f and stop getting those warnings
Solution 3: any way to pass plugin's cmd.exe working directory through a parameter?
Solution 4: any way to generate plugins xmls without stderr? a change in getOutput() from ExecCommand.h to let user decide?

Inventory log file ( optional )

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.