reset window lock screen with bat file?


  1. Posts : 4
    win 10
       #1

    reset window lock screen with bat file?


    Hi,

    1. I installed RohosLogonKey. It added a logon option to the lock screen and save a "logon key" to a usb (I save it to my c: harddrive) . So that my computer can automatically logon to window. (my computer using win10 )
    2. I also setup a program called btprox. Its job is to delete the "logon key" when loose bluetooth connection and lock the computer, then copy the "logon key" to its location when the bluetooth device is connected.
    My problem is when the computer is locked on step 2, Rohos will look for the logon key, if it cannot find the key, it stops. When the bluetooth is back and the "logon key" is copied to its location, Rohos will not unlock the computer. It seems like it won't read the "logon key". If I manual login, Rohos will work again.

    So my question is, can a bat file restart the lock screen, so that Rohos will tried to look for the "logon key"?
      My Computers


  2. Posts : 30,178
    Windows 11 Pro x64 Version 23H2
       #2

    Welcome to the TenForums @thlong123

    There is a command in this list for Lock Screen. Not sure it is what you are looking for and I'm not sure of its use in the context of what you are doing. Please ensure you have a way to get around the device being locked. Hopefully this is just a test machine and you can reimage. You decide if you want to use.

    Rundll32 commands for Windows 10/8/7/Vista


    Ken
      My Computer


  3. Posts : 4
    win 10
    Thread Starter
       #3

    @caledonken Thanks.
    The article does not have what I'm looking for, but I got some useful commands from it.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:11.
Find Us




Windows 10 Forums