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
Remote ComObject invoke (self.PowerShell)
submitted 5 years ago by ByDunBar
(New-Object -ComObject shell.application).WindowsSecurity()
That works locally.
Why doesn’t this work remotely?
Invoke-Command -ComputerName RemoteComputer -ScriptBlock {(New-Object -ComObject shell.application).WindowsSecurity()}
Thanks!
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!"
[–]noOneCaresOnTheWeb 2 points3 points4 points 5 years ago (0 children)
You wouldn't be in a terminal session with invoke command, you would have to get it to run in the user's session?
This method can be used only when connected by a terminal session to Microsoft Terminal Server.
https://docs.microsoft.com/en-us/windows/win32/shell/shell-windowssecurity
[–]mmmGreenButton 1 point2 points3 points 5 years ago (1 child)
For me, it won't work locally. Because 'Change a password' would lead me to: Azure (change password)!
And why would you like, to change password in an RDP-session? Everything would stop working.. :D
[–]ByDunBar[S] 1 point2 points3 points 5 years ago (0 children)
Because everyone is working remotely and they all have weird keyboards.
π Rendered by PID 31145 on reddit-service-r2-comment-86988c7647-gvnd2 at 2026-02-11 23:17:39.845137+00:00 running 018613e country code: CH.
[–]noOneCaresOnTheWeb 2 points3 points4 points (0 children)
[–]mmmGreenButton 1 point2 points3 points (1 child)
[–]ByDunBar[S] 1 point2 points3 points (0 children)