Reputation: 129
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!
Upvotes: 5
Views: 7167
Reputation: 12321
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-ItemPropertyValue HKLM:\HARDWARE\DESCRIPTION\System\BIOS -Name SystemManufacturer
Get-ItemPropertyValue HKLM:\HARDWARE\DESCRIPTION\System\BIOS -Name 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. :|
Upvotes: 2
Reputation: 6517
This works with all PowerShell versions, including PowerShell Core (>=6.x):
Get-CimInstance Win32_ComputerSystem | Format-List Manufacturer, Model
Get-WmiObject
is no longer available in recent versions of PowerShell.
Upvotes: 1
Reputation: 52639
Did you look at Win32_ComputerSystem
?
Get-WmiObject -Class Win32_ComputerSystem -Property Manufacturer, Model
Upvotes: 8