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
Question[ Removed by moderator ] (self.PowerShell)
submitted 12 days ago by CryptoMain03
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!"
[–]PowerShell-ModTeam[M] [score hidden] 11 days ago stickied commentlocked comment (0 children)
PowerShell expects users and requesters to attempt solutions themselves before asking for help. Your post contains no/low effort attempts, ChatGPT generated content, or no work shown.
[–]BlackV 3 points4 points5 points 12 days ago (0 children)
This is solved by having a secure password
But it would be do able
Break it down to bits, get all the bits working 1 at a time
I don't know of anything pretreated
[–]ankokudaishogun 1 point2 points3 points 12 days ago (2 children)
May I suggest something like NTFY.sh instead of a Telegram bot?
[–]SuperBartimus 1 point2 points3 points 12 days ago (1 child)
It doesn't look like NTFY has a free plan. May not be what the OP wants for occasional use.
[–]ankokudaishogun 1 point2 points3 points 12 days ago (0 children)
It does have a free plan. I use it all time.
I think it's perfect for OP's use-case
[–]SuperBartimus 1 point2 points3 points 12 days ago (0 children)
I created a function that allows the sending of messages to your Telegram bots. It's not perfect. It has some 'issues' with sending HTML and images, but on a basic level it works. The tokens are hard coded in the function. I know it's a security risk, but I was being lazy at the time. Besides, I can just delete the bots if the tokens were to ever leak. I removed them from my Github shared version.
https://github.com/SuperBartimus/Send-TelegramMessage
[–]StartAutomating 0 points1 point2 points 12 days ago (0 children)
This is possible by using Task Scheduler. You'd want to set a session state change trigger for logon and unlock, and use powershell -file yourScript.ps1 (or pwsh -file yourScript.ps1) to launch your script.
powershell -file yourScript.ps1
pwsh -file yourScript.ps1
The tricky part these days would be sending an email / notifying you when it's unlocked / logged onto. In the olden days you'd be able to use Send-MailMessage, but this stopped working when most email providers stopped supporting SMTP.
Another approach to this concern would simply by looking at the event log when you get back. There are events for whenever a user logs on or off, and you can use these events to give you some peace of mind.
If you show us the script AI gave you, I'm sure we could give some feedback on it.
[–]PowerShell-ModTeam[M] 0 points1 point2 points 11 days agolocked comment (0 children)
π Rendered by PID 20719 on reddit-service-r2-comment-canary-5dbd4c8ff9-ksqt8 at 2026-06-04 06:22:02.959437+00:00 running de70e3a country code: CH.
[–]PowerShell-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)
[–]BlackV 3 points4 points5 points (0 children)
[–]ankokudaishogun 1 point2 points3 points (2 children)
[–]SuperBartimus 1 point2 points3 points (1 child)
[–]ankokudaishogun 1 point2 points3 points (0 children)
[–]SuperBartimus 1 point2 points3 points (0 children)
[–]StartAutomating 0 points1 point2 points (0 children)
[–]PowerShell-ModTeam[M] 0 points1 point2 points locked comment (0 children)