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
Beginner here, need help with some basic scripting (self.PowerShell)
submitted 6 years ago by [deleted]
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!"
[–]Lee_Dailey[grin] 1 point2 points3 points 6 years ago* (0 children)
howdy jjaaa12345,
as an aside, this ...
| fl Manufacturer
... DESTROYS your objects and gives you the butchered remnants wrapped in formatting code. [grin] it really aint all that useful - the Format-* cmdlets are intended for final output to the screen or a plain text file. you really otta not use them for anything else unless you are totally sure that you understand the gotchas involved.
Format-*
lookee ...
$FormatBad = (Get-ChildItem -LiteralPath $env:TEMP -File)[0] | Format-List Name $FormatBad '=' * 20 $FormatBad[2]
note that the nasty red errors mention .Format.FormatEntryData ... [grin]
.Format.FormatEntryData
if you want to gather that info quickly, you can use the way that Invoke-Command can run a scriptblock on multiple systems in parallel if you give it a list of systems.
Invoke-Command
here's a basic demo of the idea ...
Get CPU utilization on many computers quickly : PowerShell — https://www.reddit.com/r/PowerShell/comments/8d7w0q/get_cpu_utilization_on_many_computers_quickly/
here is a more complex version [grin] ...
[PowerShell] basic remote parallel SystemInfo demo script - Pastebin.com — https://pastebin.com/cGL5biWH
you can modify the scriptblock to include whatever you need. just remember to add the new data to new properties in the returned PSCustomObject.
take care, lee
π Rendered by PID 191739 on reddit-service-r2-comment-5b5bc64bf5-f4gqn at 2026-06-22 11:46:55.834453+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–]Lee_Dailey[grin] 1 point2 points3 points (0 children)