need to login to a remote VM using powershell and keep session active

Midhun Jose 1 Reputation point
2021-08-09T14:37:57.927+00:00

I need to login to a Remote VM where RDP is enabled using Powershell and keep the session alive.
This is to be executed from an azure DeVOps Task

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,519 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,514 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.