Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Powershell get laptop brand

Is there a way to get a laptops brand like acer, hp, samsung via powershell? I looked at get-wmiobject to no avail. I know this is probably a long shot.

Any help would be appreciated!

like image 825
user2526047 Avatar asked Jul 30 '13 00:07

user2526047


2 Answers

Did you look at Win32_ComputerSystem?

Get-WmiObject -Class Win32_ComputerSystem -Property Manufacturer, Model
like image 78
Andy Arismendi Avatar answered Nov 12 '22 21:11

Andy Arismendi


That's *very *odd. Are you saying that WMI returns not just the wrong model but the wrong manufacturer? I've heard of cases where the wrong model was reported, but not the wrong manufacturer, and AFAIK there's no cross-pollination of hardware between Acer and Dell. This makes me wonder if you bought some cheap knock-off from the far east where the fake BIOS identification was accidentally mismatched with the fake external case. But if you're getting the wrong information from WMI, see if you can get it from the registry:

(Get-ItemProperty HKLM:\HARDWARE\DESCRIPTION\System\BIOS -Name SystemManufacturer).SystemManufacturer
(Get-ItemProperty HKLM:\HARDWARE\DESCRIPTION\System\BIOS -Name SystemProductName).SystemProductName

If that returns different information, also see what you get from this:

(Get-WmiObject Win32_BIOS).Manufacturer

I wouldn't surprised if it says Micro-Star International. :|

like image 2
Adi Inbar Avatar answered Nov 12 '22 21:11

Adi Inbar