also @ TechSpot: Initial findings suggest Foxconn plant conditions are above average
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.

Go Back   TechSpot OpenBoards > Hardware > Mobile Computing

Download Now:

Dell E5400 WMI battery name corrupt

Thread Tools Search this Thread
  #1  
Old 02-09-2009
Newcomer, in training
 
Member since: Feb 2009, 2 posts
Dell E5400 WMI battery name corrupt

If I try to retrieve the Name attribute of Win32_Battery, I get non-alphanumerical information which then causes a problem with using this info as text (log file etc).

Can anyone help?

A simple example:-

Code:
Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20

strComputer = "."

   Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
   Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_BIOS", "WQL", wbemFlagReturnImmediately + wbemFlagForwardOnly)

   For Each objItem In colItems
      WScript.Echo "Name: " & objItem.Name
   Next
This gives "DELL RM6618B" followed by a random set of non-alphanumerical characters.

An example output is = (DELL RM6618B??? ??? ? Y???)

which when viewed in a Hex Editor is :-
44 45 4C 20 52 4D 36 36 31 38 42 (this bit is Dell RM6618B) then,
3F 3F 3F 0C 3F 3F 3F 0C 3F 0B 59 09 3F 3F 3F
  #2  
Old 02-09-2009
Ex-TechSpotter
 
Member since: Dec 2007, 18,354 posts
Is this it http://support.microsoft.com/kb/833600
  #3  
Old 02-09-2009
Newcomer, in training
 
Member since: Feb 2009, 2 posts
Thanks for the quick reply kimsland.

Unfortunately it does not look like this is the fix because the file "Cimwin32.dll" on my system (XP SP2) is dated 4 Aug 2004 and is version 5.1.2600.2180 which is later than the DLL spec in Microsoft's article.

I should have said earlier that I did search MS knowlegebase but did not seem to find what I need.
  #4  
Old 02-09-2009
TechSpot Addict
 
Location: Germany
Member since: Aug 2006, 829 posts
System specs
I just tried with a e6400 and get this:

Name: Dell FU4418A

which looks pretty normal. there is not much difference between those models.
do you have another machine where you can test?
Closed Thread

Similar Topics
Topic Replies Forum
Tuesday tech deals: $470 off Dell Latitude E5400 with dock 0 TechSpot News and Comments
Dell Battery numbers 2 Other Hardware
Dell Will Not Charge Battery 2 Other Hardware
Dell Inspiron 3500 charges and runs on battery but cannot find battery or bay devices 3 Mobile Computing
Dell Combo/DVD+RW Drive with corrupt drivers? 1 Storage and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
All times are GMT -4. The time now is 08:57 AM.