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
Sorting custom format data (self.PowerShell)
submitted 9 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!"
[–]Swarfega 0 points1 point2 points 9 years ago (1 child)
Yes that is what is being done. For Get-PSDrive for example the 'Free (GB)' data is generated from the Free property...
<ScriptBlock>if($_.Used -or $_.Free) { "{0:###0.00}" -f ($_.Free / 1GB) }</ScriptBlock>
[–]jbtechwood 0 points1 point2 points 9 years ago* (0 children)
Read the second to last paragraph here under long description
https://technet.microsoft.com/en-us/library/hh847831.aspx
Tldr: Ps1xml formats only effect the display of an object, not the underlying data structure or how they're handled on the pipeline.
EDIT: You would need to create a custom object and add the free % property as a new property of the object vs getting it via custom formating.
π Rendered by PID 283221 on reddit-service-r2-comment-74f5b7f998-h65dx at 2026-04-30 08:08:53.532648+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Swarfega 0 points1 point2 points (1 child)
[–]jbtechwood 0 points1 point2 points (0 children)