Windows 10: Why my computer is locking automatically

Discus and support Why my computer is locking automatically in Windows 10 BSOD Crashes and Debugging to solve the problem; Hello everyone,I have a problem with my computer. It is locking when I unplug it from the socket even if the battery is full charged. It happens the 3... Discussion in 'Windows 10 BSOD Crashes and Debugging' started by Bicbic78, Jul 29, 2021.

  1. Bicbic78 Win User

    Why my computer is locking automatically


    Hello everyone,I have a problem with my computer. It is locking when I unplug it from the socket even if the battery is full charged. It happens the 3 times I unplug it and it begins yesterday.When I press the power button on battery mode, it try to turn on but never more than 30 seconds.I hope someone could help me Thanks a lot !

    :)
     
    Bicbic78, Jul 29, 2021
    #1
  2. newtekie1 Win User

    [Tip] Automatic Login to Windows and Instantly lock the computer.

    Problem: You like to leave XYZ program running 24/7, but XYZ program only starts when you log into the computer(XYZ can be whatever program you want). So when automatic updates hit and auto-restart your computer, the XYZ program doesn't start back up. You could not put a password on your user account, so the computer automatically logs onto your user account when it reboots, but that is insecure, and if you have nosy roommates/children/super intelligent monkeys, if there is no password they might get on your computer and find your huge collection of por...legally obtained songs...
    Why my computer is locking automatically Shifty_Eyes_Emoticon_by_Canaan1.gif


    Solution: Set Windows to automatically log into a password protected user account, and then instantly lock the computer.*Rockout :rockout: Here's how:

    • I'm going to assume you already have your user account password protected. If not, setup a password for your user account now...I'll wait...ok, moving on.
    • In the Run dialog type "control userpasswords2" without quotes. Then press OK.

      Why my computer is locking automatically autologin1.png
    • In the User Accounts window uncheck the box for "Users must enter a password to use this computer." Press OK.

      Why my computer is locking automatically autologin2.png
    • In the Automatically Log On window enter your username and password. Press OK.

      Why my computer is locking automatically autologin3.png
    • Open Notepad and type "rundll32.exe user32.dll, LockWorkstation" without quotes.

      Why my computer is locking automatically autologin4.png
    • Save the text document as lock.bat. Make sure you change Save as type: from *.txt to *.*!

      Why my computer is locking automatically autologin5.png
    • Drag lock.bat into your Startup folder.

      Why my computer is locking automatically autologin6.png
    That is it. Now when the computer is rebooted it will automatically log in to your account, load any programs you want started, and lock the computer so a password is still required to use it.*Toast :toast:

    A few notes:
    • If you change the password for your user account, it will break the auto login. You will have to go back into control userpasswords2 and re-enter your login information.
    • This should work with any recent version of Windows, I've tested it back to at least XP. You shouldn't be using anything older than that anyway.
    • I've tested this with Win7 and Vista Home Premium and up. It should work on Home Basic and Starter as well, and it should work on XP Home, but I haven't tested this personally. The lower versions of Windows might not have the Control Userpasswords2 ability.
    • This works with Server versions of Windows also.
     
    newtekie1, Jul 29, 2021
    #2
  3. dccool879 Win User
    Computer lock ups...

    weird, i did what you said, and instead of locking up w/ the screen frozen and the sound clicking, it now would go black, or go black and reboot automatically. i found out a place that always makes my computer freeze, and that is refreshing the server list in battlefield 2
     
    dccool879, Jul 29, 2021
    #3
  4. Why my computer is locking automatically

    Vista Automatic Updating Error

    Automatic Updates isn't currently running.
     
    DistantDeath, Jul 29, 2021
    #4
Thema:

Why my computer is locking automatically

Loading...
  1. Why my computer is locking automatically - Similar Threads - Why computer locking

  2. Why BitLocker locked my computer

    in Windows 10 Gaming
    Why BitLocker locked my computer: I bought brand new Lenovo ThinkPad Notebook. After one year I got blue screen to insert recovery key for BitLocker. I got my PC with pre-installed Windows OS. I haven't link my Microsoft account with BitLocker. Why BitLocker locked my PC now ?...
  3. Why BitLocker locked my computer

    in Windows 10 Software and Apps
    Why BitLocker locked my computer: I bought brand new Lenovo ThinkPad Notebook. After one year I got blue screen to insert recovery key for BitLocker. I got my PC with pre-installed Windows OS. I haven't link my Microsoft account with BitLocker. Why BitLocker locked my PC now ?...
  4. Why is my computer not locking?

    in Windows 10 Gaming
    Why is my computer not locking?: For some reason, this week, after the reboot on Tuesday, my computer will not turn the screens off and will not lock. I have gone in and checked, and I have the screens turning off after 5 minutes, and the lock feature is enabled. When I reboot, it will turn the screens off,...
  5. Why is my computer not locking?

    in Windows 10 Software and Apps
    Why is my computer not locking?: For some reason, this week, after the reboot on Tuesday, my computer will not turn the screens off and will not lock. I have gone in and checked, and I have the screens turning off after 5 minutes, and the lock feature is enabled. When I reboot, it will turn the screens off,...
  6. Computer Locking itself Automatically

    in Windows 10 Performance & Maintenance
    Computer Locking itself Automatically: HP EliteBook 745 G6 Windows 10 Pro Version 20H2 OS Build 19042.928 keeps locking itself while charging and does not show any errors just a splash blue screen which appears for almost 3 seconds ,even if its idle or just typing MSword or doing other staff....
  7. Faced problem with locked automatically my computer.

    in Windows 10 BSOD Crashes and Debugging
    Faced problem with locked automatically my computer.: Why does my computer locked automatically after starting? https://answers.microsoft.com/en-us/windows/forum/all/faced-problem-with-locked-automatically-my/51f9904a-0619-4149-aae3-3d48fc2efd8d
  8. Computer keeps locking automatically

    in Windows 10 Performance & Maintenance
    Computer keeps locking automatically: My computer keeps locking up. Ill try to run something and a blue screen will pop saying "locking..." And it will completely shut down. How do i fix this?...
  9. Why my computer turns on automatically?

    in Windows 10 BSOD Crashes and Debugging
    Why my computer turns on automatically?: After shutting down, immediately my PC turns on by itself, automatically. The computer turns off completely, after shutting down. Once it is turned off. After 1.5 seconds. It turns on again. It is like magic because nobody pushes the bottom for the PC to turn on. Help me,...
  10. Computer keeps locking automatically

    in Windows 10 BSOD Crashes and Debugging
    Computer keeps locking automatically: My computer keeps locking up. Ill try to run something and a blue screen will pop saying "locking..." And it will completely shut down. How do i fix this? ***Modified title from: my computer (dell, windows 10) keeps locking up, how do I fix it?***...