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!
user2526047user2526047
Gungnir wrote: When an object is piped to a format cmdlet, the object is destroyed and turned into a format object. These objects are only suitable for display on screen or being sent to a file ( direct writes only, not something like Export-Csv ). Use Get-CimInstance with DCOM PowerShell 3.0 added an alternative to Get-WmiObject: Get-CimInstance seems to work very similar and can retrieve information from the internal WMI service: PS C: Get-WmiObject -Class Win32BIOS SMBIOSBIOSVersion: A03 Manufacturer: Dell Inc. Name: A03 SerialNumber: 5TQLM32 Version: DELL - 1072009 PS C: Get-CimInstance -Class Win32BIOS SMBIOSBIOSVersion.
2 Answers
![Win32_computersystem).manufacturer.replace Win32_computersystem).manufacturer.replace](/uploads/1/2/4/9/124912887/885274323.jpg)
37.5k1212 gold badges8484 silver badges111111 bronze badges
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:
If that returns different information, also see what you get from this:
I wouldn't surprised if it says Micro-Star International. :|
Adi InbarAdi Inbar9,2891010 gold badges4141 silver badges6363 bronze badges