I have a powershell script that determines a computer model number and attempts to filter by model family to run commands specific to model families. This is what I've got, but it doesn't work! #HP Inc. APR 2019
'$EliteBook=Get-WmiObject -Class:Win32_ComputerSystem -Filter:"Model LIKE '%HP EliteBook%'" -ComputerName:localhost'
'If($EliteBook)'
I first tried the to filter the model number excluding the prefix HP, but that didn't work either, any advice would be greatly appreciated!