#165964 - 2006-08-15 10:21 PM
Re: Dell Battery Recall
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
I have a bad battery.
|
|
Top
|
|
|
|
#165965 - 2006-08-15 10:22 PM
Re: Dell Battery Recall
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
Code:
Break On $strComputer = "wheelerc_lap" $arrBattery = split(WMIQuery('name','Win32_PortableBattery',$strComputer),'|')
$arrbatcode = '1K055', '3K590', '59474', '6P922', 'C2603', 'C5339', 'C5340', 'C5446', 'C6269', 'C6270', 'D2961', 'D5555', 'D6024', 'D6025', 'F2100', 'F5132', 'GD785', 'H3191', 'JD616', 'JD617', 'KD494', 'M3006', 'RD857', 'TD349', 'U5867', 'U5882', 'W5915', 'X5308', 'X5329', 'X5332', 'X5333', 'X5875', 'X5877', 'Y1333', 'Y4500', 'Y5466'
For each $battery in $arrbattery for each $item in $arrbatcode if instr($battery ,$item) ? $battery endif next Next
FUNCTION WMIQuery($what,$from,optional $computer,optional $where, optional $x) dim $strQuery, $objEnumerator, $value if not $computer $computer="@WKSTA" endif $strQuery = "Select $what From $from" if $where and $x $strQuery = $strQuery + " Where $where = '$x'" endif $SystemSet = GetObject("winmgmts:{impersonationLevel=impersonate}!//$computer") $objEnumerator = $SystemSet.ExecQuery($strQuery) For Each $objInstance in $objEnumerator If @Error = 0 and $objInstance <> "" $=execute("$$value = $$objInstance.$what") $WMIQuery="$value"+"|"+"$WMIQuery" EndIf Next $WMIQuery=left($WMIQuery,len($WMIQuery)-1) exit @error ENDFUNCTION
|
|
Top
|
|
|
|
#165974 - 2006-08-23 07:49 PM
Re: Dell Battery Recall
|
pvds
Hey THIS is FUN
   
Registered: 2001-04-14
Posts: 201
|
Quote:
The full list, or only the base numbers as listed on the Web?
If it's the full list I'd appreciate if you could mail me a copy.
Only the laptops our company own!!
|
|
Top
|
|
|
|
#165975 - 2006-08-23 07:52 PM
Re: Dell Battery Recall
|
pvds
Hey THIS is FUN
   
Registered: 2001-04-14
Posts: 201
|
Quote:
Yeah, could you show a scanned list?
its a excel sheet!
And I can mail it to you but only our affected Laptops are on it.
|
|
Top
|
|
|
|
#165979 - 2006-08-24 11:51 PM
Re: Dell Battery Recall
|
Witto
MM club member
   
Registered: 2004-09-29
Posts: 1828
Loc: Belgium
|
We do have one or two 10 year old apples, but they are not portable without unplugging the power cord.
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1046 anonymous users online.
|
|
|