question

anandan002 avatar image
0 Votes"
anandan002 asked VickyWang-MFST commented

Unlock my machine in background - command

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-serverwindows-group-policywindows-server-management
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeonLaude avatar image
0 Votes"
LeonLaude answered anandan002 commented

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


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for your response, this will work only after the machine is restarted and there is a possibility for the machine to went into a lock state.

Is there is a way to remotely unlock the machine (not taking RDP session through mstsc)?

0 Votes 0 ·

I'm afraid not, that would increase the security risks, maybe some third party application.

0 Votes 0 ·

This is how the famous RPA tools like UiPath & Automation Anywhere is working, it will unlock the machine during the process execution and returns the machine to the initial state after completion.

0 Votes 0 ·
TimCerling-5039 avatar image
0 Votes"
TimCerling-5039 answered anandan002 edited

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Our automation includes keystrokes and mouse clicks, these features will work only if the machine is in unlock state.

We have an orchestrator(centralized server) that stores the credential of the user machine where the process execution happens. Using this credential I'm trying to unlock the machine and execute the process (not through mstsc)

0 Votes 0 ·
VickyWang-MFST avatar image
0 Votes"
VickyWang-MFST answered VickyWang-MFST commented

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

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Auto login based on registry modification is working fine, still I'm searching to get the solution for unlocking machine

0 Votes 0 ·

》》 It seems like the more secure solution would be to modify the program to not need the console.
I agree with the point of view
It is recommended that you do not unlock the console

Hope this information can help you
Best wishes
Vicky

0 Votes 0 ·