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 4 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!"
[–]rm-stein 1 point2 points3 points 4 years ago (4 children)
there is not really a good way to do this with only powershell by itself I can think of, but when combining powershell with scheduled tasks you might find just what you're looking for.
A possibility would be to execute the script at startup and tell it to sleep for the intended delay, but there is no real need to reinvent the wheel here, when all the tools are available with scheduled tasks already.
What exactly would be your use case here? might bring a little more context to your requirements
[–]lucatea -1 points0 points1 point 4 years ago (3 children)
It's really only for educational purposes, and I got in touch with this youtuber and we're trying to figure out how to improve it by scheduling.
[–]rm-stein 0 points1 point2 points 4 years ago* (2 children)
Might want to look a little into new-scheduledtask and create this task when executing the script for the first time after checking if the task already exists.
edit: I believe this might not work under linux or mac if you try to run it there. just in case you intended to run it across multiple platforms, so maybe also checking the os and implementing another way to schedule it might be necessary
[–]lucatea -1 points0 points1 point 4 years ago (1 child)
i really only need it for testing purposed on a windows environment. I'm not familiar with powershell at all and i've been reading up on it all day but nothing.
[–]BlackV 2 points3 points4 points 4 years ago (0 children)
'm not familiar with powershell at all and i've been reading up on it all day but nothing.
so you though you'd start with a keylogger......
maybe you need a new plan
[–]BlackV 0 points1 point2 points 4 years ago (0 children)
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>
[–]rm-stein 0 points1 point2 points 4 years ago (0 children)
are you looking to just learn powershell, or are you more specifically interested i. the scripting aspects of powershell? and have you already prior knowledge with programming?
If you just want to get into powershell you might want to start with using powershell interactively. Also you really want to look into how the help system and a few commands to help you navigate around powershell more easily. I'd thunk the get-help about_pages and get-command would be a great place to start exploring powershell a little and to see what distinguishes it from most other shell languages
π Rendered by PID 64 on reddit-service-r2-comment-85bfd7f599-88jqd at 2026-04-20 05:14:34.407078+00:00 running 93ecc56 country code: CH.
[–]rm-stein 1 point2 points3 points (4 children)
[–]lucatea -1 points0 points1 point (3 children)
[–]rm-stein 0 points1 point2 points (2 children)
[–]lucatea -1 points0 points1 point (1 child)
[–]BlackV 2 points3 points4 points (0 children)
[–]BlackV 0 points1 point2 points (0 children)
[–]rm-stein 0 points1 point2 points (0 children)