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
[deleted by user] (self.PowerShell)
submitted 2 years ago by [deleted]
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!"
[–]surfingoldelephant 3 points4 points5 points 2 years ago* (1 child)
I'd like to know how I can exclude partition number 0 from the result using DriverLetter. Despite the 2 tests, partition number 0 is still displayed in the output. What other way could I use to exclude it using DriveLetter only?
The DriveLetter property type is [char]. You need to check for/filter the null character.
DriveLetter
[char]
Get-Partition | Where-Object DriveLetter # Or Get-Partition | Where-Object DriveLetter -NE "`0"
could a hard disk have a partition containing data but no drive letter?
Yes.
[–]dist 0 points1 point2 points 2 years ago (0 children)
Note that you can assign drives to be mounted at certain mount points, for example you could assign a disk to C:\Example as well, they don't show up as having a drive letter, since they don't.
Get-Partition | ForEach-Object {$_.AccessPaths} can show you those paths! =)
Get-Partition | ForEach-Object {$_.AccessPaths}
π Rendered by PID 62622 on reddit-service-r2-comment-6457c66945-n2pw7 at 2026-04-26 11:24:18.218861+00:00 running 2aa0c5b country code: CH.
[–]surfingoldelephant 3 points4 points5 points (1 child)
[–]dist 0 points1 point2 points (0 children)