Jump to content
Sign in to follow this  

Harware IDS Help

Recommended Posts



First i must give a very Big Thanks to all people here in this forum for helping others by Fast Answering there Questions.

i have many questions here((Sorry for That)):

1-is there is any way to get HWIDS (Hardware IDs) for all devices in computer Like (Microsoft Devcon.exe) tool ?

i am trying to Use CompInfo.au3 UDF it is very nice and helpfull (Thanks to the author) but it doesn't give me all Devices IDS

and in other hand Devcon.exe give me a text file >> is there any way to convert it to ini file ?

2-if i have ini file that contain a database-like of something, and another ini file generated and i want to compare the values in the new ini file and the old one

to give the value that found in the old one, i.e to comparing to different values , or search the values in the new ini files in the database ini file and give the

value that found in the database ini file.

i am sorry for my bad language..thanks again for everything..


Share this post

Link to post
Share on other sites

Dim $oWMI = ObjGet('winmgmts:')
Dim $oDevices = $oWMI.ExecQuery('Select * From Win32_PnPEntity')

For $oDevice In $oDevices
    ConsoleWrite('Name: ' & $oDevice.Name & @TAB & 'DeviceID: ' & $oDevice.DeviceID & @CRLF)

Please search the help file for the Ini* functions. You can process a loop and test both array's subscripts for a match or not and react accordingly by replacing the old array is non-matching value with the new file's array subscript and use IniWriteSection() at the end or IniWrite() within the loop.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.