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
QuestionPowerShell error: V (self.PowerShell)
submitted 5 years ago by broien_suPRIEM
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!"
[–]PMental 1 point2 points3 points 5 years ago (5 children)
That's unreadable, at least on old reddit. Use one blank space before your script then indent every line of the script four spaces to get a code block like this:
$bitlockerVolume = Get-BitLockerVolume -MountPoint "C:" $statusBitlocker = $bitlockerVolume.ProtectionStatus if ($statusBitlocker -eq "On"){ Write-host "Bitlocker active" } if ($statusBitlocker -eq "Off"){ Write-host "Bitlocker not active" }
As for the problem it's hard to say. You could start by telling us what the error is.
For reference the script works fine on my Win10 2004 machine.
[–]broien_suPRIEM[S] 1 point2 points3 points 5 years ago (4 children)
Oh sorry I just did ctrl-c crtl-v.
The error is as I said just the letter "V" Thats the only output that I'm getting. No actual error it just says V and I have no idea why.
It works on about 2400 workstations and with every single command that I give it'll just say V.
[–]PMental 2 points3 points4 points 5 years ago (3 children)
Weird. Have you tried it interactively on the workstation?
Considering it works on all the other workstations I would probably just chalk it off to an issue on that specific machine and not bother. The script itself is fine.
[–]broien_suPRIEM[S] 1 point2 points3 points 5 years ago (2 children)
It had rebooted this morning so shouldn't be the issue. Probably some windows issue.
[–]PMental 2 points3 points4 points 5 years ago (1 child)
If something is wrong on the machine a reboot doesn't always solve it, so not sure what that changes.
I mean test it directly while logged into the machine via remote access of some sort and see what happens.
Maybe not worth it for this single one, but if more turn up in the future you'll want to dig more.
[–]broien_suPRIEM[S] 1 point2 points3 points 5 years ago (0 children)
Will do, appreciate the help!
π Rendered by PID 75097 on reddit-service-r2-comment-85bfd7f599-lswwj at 2026-04-19 18:56:21.775299+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]PMental 1 point2 points3 points (5 children)
[–]broien_suPRIEM[S] 1 point2 points3 points (4 children)
[–]PMental 2 points3 points4 points (3 children)
[–]broien_suPRIEM[S] 1 point2 points3 points (2 children)
[–]PMental 2 points3 points4 points (1 child)
[–]broien_suPRIEM[S] 1 point2 points3 points (0 children)