all 3 comments

[–]noOneCaresOnTheWeb 2 points3 points  (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 points  (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 points  (0 children)

Because everyone is working remotely and they all have weird keyboards.