Login en windows con powershell

Telmo Jose Roque Roman 0 Reputation points
2024-01-08T07:30:39.75+00:00

Buenos días,

Por necesidades de una aplicación, necesito que un usuario esté logueado en windows 10 de manera continua.

Estoy monitorizando si el usuario está o no logueado, pero preciso de un script que me permita loguearme con el usuario de manera interactiva desde powershell.

He visto alternativas incluyendo las credenciales en el registro del sistema y al reiniciar arranca en el usuario, pero reiniciar para mí no es una opción viable.

Gracias.

Saludos.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,044 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,796 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,596 Reputation points
    2024-01-08T16:20:42.8933333+00:00

    Using Enter-PSSession will allow you to do that.

    0 comments No comments

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.