[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

10/04/2009 at 11:49AM PDT, ID: 24783880
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

Hard Drive info VBS using Win32_DiskDrive - what is "Signature" ?

Asked by BillDL in Windows Management Instrumentation (WMI), Computer Hard Drives, Visual Basic Programming

Tags: VB Script, WMI, objItem.Signature, Windows XP, Hard Drive, USB Drive

Hi Experts

I'm not terribly well acquainted with either VB Scripting or WMI, but I participated recently in another question about creating backups on an external usb hard drive using "DOS" batch and xcopy, and the subject came around logically to performing some checks to ensure that the drive letter was assigned to the correct drive.  The suggestions were to use the Volume Label for the check, but it got me thinking about the Manufacturer's Serial Number as an even more accurate check.

There is the Volume Serial number of drives, which is assigned by the operating system, but that wouldn't be applicable if the drive was connected to another PC, but the manufacturer's serial number for the hard drive would remain static if it can be retrieved.

I discovered a couple of VB scripts that use the "Win32_DiskDrive" class and retrieve the "Signature" value for drives.  I am wondering what this value actually is.

Here's the details I have gathered in respect of my two internal IDE hard drives and my external USB hard drive using Windows commands, AIDA32 (now Everest), Belarc Advisor, and the VBS file in the code snippet.

Seagate (C:) One Partition - System Drive.
WMI Signature: 281022655 <-------------------------------- **
Aida32 and Belarc Model ID: ST340016A
Aida32 and Belarc Serial No: 3HS96FM0
Volume Label: CCB6-7A61 (or CCB77A61 MSINFO32)

Maxtor (D: NTFS and E: FAT32)
WMI Signature: -1297841220 <----------------------------- **
Aida32 and Belarc Model ID: Maxtor 6L160P0
Aida32 and Belarc Serial No: L41C7NTH
Volume Serial D: 7C77-844F (or 7C77844F MSINFO32)
Volume Label D: XP_NTFS
Volume Serial E: 0B66-1ED8 (or 0B661ED8 MSINFO32)
Volume Label E: STORAGE

Freecom USB (I: J: K:) 3 Partitions all FAT32
WMI Signature: 50627703 <----------------------------- **
NirSoft USBDeview Serial No: DEF10B39A73D
NirSoft USBDeview Device Name: Classic SL Hard Drive
Model ID: Freecom HDS72808 0PLAT20
Volume Serial I: 9451-248B (or 9451248B MSINFO32)
Volume Label I: FREECOM1
Volume Serial J: D827-A03B (or D827A03B MSINFO32)
Volume Label J: FREECOM2

Can someone tell me what Signature is, and where it is retrieved from?

Thank you
Bill

VBS file below.  I'm running this in Windows XP SP3.
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:
On Error Resume Next
 
Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20
 
strComputer = "."
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_DiskDrive", "WQL", wbemFlagReturnImmediately + wbemFlagForwardOnly)
 
For Each objItem In colItems
    WScript.Echo "Caption: " & objItem.Caption
    'WScript.Echo "Model: " & objItem.Model
    WScript.Echo "MediaType: " & objItem.MediaType
    WScript.Echo "Manufacturer: " & objItem.Manufacturer
    WScript.Echo "MediaLoaded: " & objItem.MediaLoaded
    WScript.Echo "InterfaceType: " & objItem.InterfaceType
    WScript.Echo "Description: " & objItem.Description
    WScript.Echo "DeviceID: " & objItem.DeviceID
    WScript.Echo "Name: " & objItem.Name
    WScript.Echo "Index: " & objItem.Index
    WScript.Echo "Partitions: " & objItem.Partitions
    WScript.Echo "Status: " & objItem.Status
    WScript.Echo "Signature: " & objItem.Signature
    WScript.Echo
Next
[+][-]10/04/09 11:53 AM, ID: 25490207

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/04/09 12:00 PM, ID: 25490253

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/04/09 12:01 PM, ID: 25490260

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/04/09 12:54 PM, ID: 25490575

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/04/09 01:05 PM, ID: 25490644

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Windows Management Instrumentation (WMI), Computer Hard Drives, Visual Basic Programming
Tags: VB Script, WMI, objItem.Signature, Windows XP, Hard Drive, USB Drive
Sign Up Now!
Solution Provided By: greenhacks
Participating Experts: 1
Solution Grade: A
 
 
[+][-]10/04/09 01:24 PM, ID: 25490754

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/04/09 01:33 PM, ID: 25490801

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/05/09 07:05 AM, ID: 25495308

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91 - Hierarchy / EE_QW_EXPERT_20070906