AutoAdminLogon seems to prevent sleep mode

RW 0 Reputation points
2024-05-23T13:44:19.9566667+00:00

I have applied a Shell Launcher configuration without an AutoLogonAccount.

This configuration starts a Chrome instance.

https://learn.microsoft.com/en-us/windows/configuration/assigned-access/shell-launcher/configuration-file

Then I have configured an auto logon with https://learn.microsoft.com/de-de/sysinternals/downloads/autologon. This confiuration logs in an non-admin account.

Then I have applied a group policy to put the machine to sleep after a certain amount of time.

After that time the machine seems to sleep, but wakes up immediately.

I have already checked powercfg /requests but without success.

After disabling the auto logon, the machine is put to sleep correctly.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,975 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 32,321 Reputation points Microsoft Vendor
    2024-05-27T04:16:00.0233333+00:00

    Hi RW,

    Thanks for your post. Based on my research, this issue is particularly when the power options are corrupted. Method 1. Restore default power options. If you have tried the command, please go directly to Method 2. - Open command prompt admin or powershell admin (Press Windows key + X then click on Windows Powershell (Admin) ) - Copy, paste and enter the command below: powercfg -restoredefaultschemes -Restart PC and check. Method 2. Run power Troubleshooter - Press Windows key + R then type: msdt.exe /id PowerDiagnostic - Click OK then follow the prompt to run the power troubleshooter -Restart the device after Method 3. Open Control Panel> Click Hardware and Sound > Click Power Options> then click Choose what the power buttons do > Click Change settings that are currently unavailable> Check Sleep (or uncheck then check it again) Click Save Changes then restart. Method 4. Do clean boot A “clean boot” starts Windows with a minimal set of drivers and startup programs, so that you can determine whether a background program is interfering with your game or program. - In the search box on the taskbar, type msconfig and select System Configuration from the results. - On the Services tab of System Configuration, select Hide all Microsoft services, and then select Disable all. - On the Startup tab of System Configuration, select Open Task Manager. - Under Startup in Task Manager, for each startup item, select the item and then select Disable. - Close Task Manager. - On the Startup tab of System Configuration, select OK. When you restart the computer, it's in a clean boot environment. troubleshooting reference: https://support.microsoft.com/en-us/help/929135... If none will work from the above solution I suggest to do an in-place upgrade wherein it will upgrade the device to the latest version and repair all issues without deleting any files. Note: before doing this make sure to create a restore point: https://support.microsoft.com/en-hk/help/402753... 1. go to this link: https://www.microsoft.com/en-us/software-downlo... 2. Select Download tool, and select Run. You need to be an administrator to run this tool. 3. On the License terms page, if you accept the license terms, select Accept. 4. On the What do you want to do? page, select Upgrade this PC now, and then select Next. 5. After downloading and installing, it should fix the issue. Reference: https://www.microsoft.com/en-us/software-downlo... Note: if you receive error: “This Pc can’t be upgrade, follow the steps below” Method 1. Go to C:$WINDOWS.~BT\Sources\Panther then delete the file name compatscancache.dat Then try again or reboot the PC first then try again. You might not see the folder as it is hidden, make sure to show hidden files first.

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments