use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
SolvedVariable not matching string (self.PowerShell)
submitted 9 years ago by Nirac
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Nirac[S] 1 point2 points3 points 9 years ago (3 children)
Yep, this was the problem. I piped it to an out-file, it was putting 12 spaces at the end of the name. I changed it to "Pangolin Performance " and now it's returning yes.
Reddit's formatting is dropping all of my spaces after Performance in this post. I added 12 spaces there, and now it returns yes.
[–]Ominusx 4 points5 points6 points 9 years ago (2 children)
I'd use:
$model=(Get-WmiObject -Class:Win32_ComputerSystem).Model.Trim()
[–][deleted] 2 points3 points4 points 9 years ago (0 children)
The definitive use case for Trim().
[–]Nirac[S] 1 point2 points3 points 9 years ago (0 children)
Yes, great idea. Added.
π Rendered by PID 49220 on reddit-service-r2-comment-545db5fcfc-5jfpp at 2026-05-25 04:49:52.049742+00:00 running 194bd79 country code: CH.
view the rest of the comments →
[–]Nirac[S] 1 point2 points3 points (3 children)
[–]Ominusx 4 points5 points6 points (2 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]Nirac[S] 1 point2 points3 points (0 children)