Unlock my machine in background - command

Anandhan Sathyanarayanan 136 Reputation points
2020-07-15T16:10:56.573+00:00

HI,

I'm doing some automation process that requires unlocking my machine remotely from another server\machine (without taking the RDP session via mstsc command).

How to perform this operation using script\command (without using paid third party tools)?

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,770 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,171 questions
Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
421 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Laude 85,666 Reputation points
    2020-07-15T18:39:48.407+00:00

    Hi,

    You can use the automatic logon option, or the SysInternals Autologon, otherwise I don't think there are any other tools that Microsoft provide which can unlock your computer.

    Best regards,
    Leon


2 additional answers

Sort by: Most helpful
  1. TimCerling(ret) 1,156 Reputation points
    2020-07-16T13:00:30.733+00:00

    I'm curious about what you are trying to do. I agree with Leon that remotely unlocking the console opens a security risk. Is this capability needed to run an application on the server that requires the console, so that is why it must be unlocked? It seems like the more secure solution would be to modify the program to not need the console.


  2. Vicky Wang 2,646 Reputation points
    2020-07-20T00:25:40.743+00:00

    Hi,
     
    Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.
     
    Best Regards,
    Vicky