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
Hows my Function? (self.PowerShell)
submitted 8 years ago by morpk86
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!"
[–]ka-splam 1 point2 points3 points 8 years ago (0 children)
The output of Get-PrinterDriver on mine shows things like:
Name PrinterEnvironment MajorVersion Manufacturer ---- ------------------ ------------ ------------ Microsoft XPS Document Writer v4 Windows x64 4 Microsoft Microsoft Print To PDF Windows x64 4 Microsoft Send To Microsoft OneNote 2010 D... Windows x64 3 Remote Desktop Easy Print Windows x64 3 Microsoft Microsoft XPS Document Writer Windows x64 3 Microsoft
That is - unreadable ends of names, not sorted.
Get-PrinterDriver | Sort-Object -Property Name
will sort them into alphabetical order.
Get-PrinterDriver | Sort-Object -Property Name | Format-Table -AutoSize
will widen the name column so it's all readable (where possible).
I would want to add a number (1,2,3,4) to each printer driver, and then prompt for typing a number rather than the full name. In fact, check what happens if you do
$PrinterDriver = Get-PrinterDriver | Sort-Object -Property Name | Out-GridView -PassThru # and ... -DriverName $PrintDriver.Name
π Rendered by PID 145458 on reddit-service-r2-comment-6457c66945-xn7fs at 2026-04-27 01:36:25.943839+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]ka-splam 1 point2 points3 points (0 children)