I am creating a short script here to check for the computer manufactorer, using WmiObjects.
$a = Get-WmiObject win32_ComputerSystem $b = "Example" if($a.Manufactorer.ToString() -eq $b){Write-host("Nice")}
But this is never “true” for me, I never get a response. Why’s that?
submitted by /u/Z_Zeay
[link] [comments]
The post [Question]Beginner question, why can’t I compare these two strings? appeared first on How to Code .NET.