I have been trying to remotely execute some scripts and run some programs on a remote virtual machine on a server. The command I have been using is Invoke-command After going through all the troubles to make it work properly with the right authentications and credentials and internal password, I now can finally invoke some executables from my local computer. However, as I was trying to run notepad.exe, it only showed up in the background processes, meaning that I couldnt see any notepad UI whatsoever. Does anyone know what the solution to this is ? Thank you!
A solution using powershell, sadly I don't. I'd be glad to offer a bounty for someone else to find though!
For this, I use psexec. It's fairly simple to use and has a switch to run interactive processes.
While typing this answer, I saw this stackoverflow question, and the #1 answer is that it's a security limitation of powershell, so it may not be possible at all, even in the future.