v
Invalid query
Size: a a a
v
FS
★ᵃ
>
★ᵃ
FS
FS
FS
$services = Get-WmiObject Win32_Service -Property Name,DisplayName,PathName | Select Name,PathName
$serviceList = New-Object System.Collections.ArrayList
foreach ($service in $services) {
Try {
$path = $service.Pathname.tostring().replace('"','')
$cri = ([System.Diagnostics.FileVersionInfo]::GetVersionInfo($path)).legalcopyright
if ($cri -notlike "*Microsoft*") {
$serviceList += $service | select Name
}
} catch {}
}
$serviceList
★ᵃ
Try this
Get-WmiObject -Query "SELECT SerialNumber FROM Win32_Bios WHERE NOT SerialNumber LIKE 'to be filled by O.E.M%'"
Notice where the NOT sits in the syntax - not intuitive
This also works
Get-WmiObject -Class Win32_Bios -Filter "NOT SerialNumber LIKE 'to be filled by O.E.M%'" -Property SerialNumber
v
v
★ᵃ
FS
Bm
★ᵃ
★ᵃ
FS
v
FS
★ᵃ