Im currently creating a PS scripts, which determines the model of the computer, and then do some stuff with it, depending on which model it is.
But just for testing purpose i've created a Write-Host to view the output.
Im having a few problems regarding WMI and variables/output.
Heres my code:
$computerModel = Get-WmiObject Win32_Computersystem | Select-Object Model
For my point of view it looks okay, but the output does not in my eyes:
How am i able to just get "Latitude E6420" in my variable?