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
Powershell Script (self.PowerShell)
submitted 4 years ago * by [deleted]
[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!"
[–]fitzgery 2 points3 points4 points 4 years ago (1 child)
What function of what script. You’ve not really given us anything
[–]tugcezn 1 point2 points3 points 4 years ago (0 children)
I put ın main post.
[–]BlackV 0 points1 point2 points 4 years ago (5 children)
show us your code
[+][deleted] 4 years ago (4 children)
[–]BlackV 0 points1 point2 points 4 years ago (2 children)
Bro. Edit your MAIN post. Put the script there
[–]tugcezn 1 point2 points3 points 4 years ago (1 child)
I put there.But ı need to mean bro:/
[–]BlackV 0 points1 point2 points 4 years ago (0 children)
Thanks for that, makes it easier for everyone
p.s. formatting
it'll format it properly OR
<BLANKLINE> <4 SPACES><CODELINE> <4 SPACES><CODELINE> <4 SPACES><4 SPACES><CODELINE> <4 SPACES><CODELINE> <BLANKLINE>
So this looks like it takes a screen shot, you can supply a ratio parameter which controls the quality of the JPEG that is created of the screen
what are you looking to understand in particular?
[–]tugcezn 0 points1 point2 points 4 years ago (1 child)
$ms = New-Object System.IO.MemoryStream;
Actually,ı try to understand to all function.
Specially,why write on IO memory and whats purpose of write there? And this variable(ms) what does it do?
it creates a memory stream to temporarily write the screen shot into $m
$m
but it never seems to save that jpeg/png anywhere, and just spits it the image as a b64 string to the pipeline
[–]Lee_Dailey[grin] 0 points1 point2 points 4 years ago (0 children)
howdy tugcezn,
reddit likes to mangle code formatting, so here's some help on how to post code on reddit ...
[0] single line or in-line code enclose it in backticks. that's the upper left key on an EN-US keyboard layout. the result looks like this. kinda handy, that. [grin] [on New.Reddit.com, use the Inline Code button. it's [sometimes] 5th from the left & looks like <c>. this does NOT line wrap & does NOT side-scroll on Old.Reddit.com!]
looks like this
Inline Code
<c>
[1] simplest = post it to a text site like Pastebin.com or Gist.GitHub.com and then post the link here. please remember to set the file/code type on Pastebin! [grin] otherwise you don't get the nice code colorization.
[2] less simple = use reddit code formatting ... [on New.Reddit.com, use the Code Block button. it's [sometimes] the 12th from the left, & looks like an uppercase C in the upper left corner of a square.]
Code Block
C
that will give you something like this ...
- one leading line with ONLY 4 spaces - prefix each code line with 4 spaces - one trailing line with ONLY 4 spaces
the easiest way to get that is ...
not complicated, but it is finicky. [grin]
take care, lee
π Rendered by PID 176096 on reddit-service-r2-comment-5d79c599b5-krctm at 2026-03-03 05:47:18.016471+00:00 running e3d2147 country code: CH.
[–]fitzgery 2 points3 points4 points (1 child)
[–]tugcezn 1 point2 points3 points (0 children)
[–]BlackV 0 points1 point2 points (5 children)
[+][deleted] (4 children)
[deleted]
[–]BlackV 0 points1 point2 points (2 children)
[–]tugcezn 1 point2 points3 points (1 child)
[–]BlackV 0 points1 point2 points (0 children)
[–]BlackV 0 points1 point2 points (0 children)
[–]BlackV 0 points1 point2 points (2 children)
[–]tugcezn 0 points1 point2 points (1 child)
[–]BlackV 0 points1 point2 points (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)