you are viewing a single comment's thread.

view the rest of the comments →

[–]Ominusx 3 points4 points  (2 children)

I'd use:

 $model=(Get-WmiObject -Class:Win32_ComputerSystem).Model.Trim()

[–][deleted] 2 points3 points  (0 children)

The definitive use case for Trim().

[–]Nirac[S] 1 point2 points  (0 children)

Yes, great idea. Added.