Thursday, February 16, 2023

laptop auto wake up right after hibernate or sleep

 steps to troubleshoot:
admin cmd:  powercfg -lastwake

    Friendly Name:

    Description: High Definition Audio Controller

    Manufacturer: Microsoft


This showed sound card is causing the problem, but this one in fact is not the sound card(realtek in my case). The culprit is "Intel(R) Display Audio" in Device Manager - Sound video and game controllers.

As of 2023, update Intel graphic card drivers did not solve the issue. 

Disable this "Intel(R) Display Audio" would solve the problem. It is used by hdmi / direct Wifi to allow tv to play sound.

disable windows 10 update

In file Property - Security - Advanced , edit to add DENY Read,Write permissions:
(Administrators should allow to Read/Change Permissions though)
C:\windows\system32\wuaueng.dll
C:\windows\system32\wuauclt.exe   
C:\windows\system32\usosvc.dll
C:\windows\system32\WaaSMedicSvc.dll

Windows 10 optimization & some windows registry keys

open lid option: admin cmd:
powercfg -attributes SUB_BUTTONS 99ff10e7-23b1-4c07-a9d1-5c3206d741b4 -ATTRIB_HIDE
powercfg -attributes SUB_BUTTONS 99ff10e7-23b1-4c07-a9d1-5c3206d741b4 +ATTRIB_HIDE

powershell: Set-MpPreference -DisableScanningNetworkFiles 1

multiple "Language Pack Removal" found in RestorePoint:
in Task Scheduler: disable Microsoft\Windows\MUI\LPRemove

disable service:  (minimal/limited networking)
SysMain  (superfetch)
Print Spooler (if not using printer)
Connected user experiences and telemetry
nahimic service (if any)
net.tcp port sharing service
routing and remote access
windows push notification system service
   ~ user service (might affect Alarm&Clock countDown)

which scheduler run at idle:
powershell: Get-ScheduledTask | Where-Object { $_.State -ne "Disabled" } | Select-Object TaskName, TaskPath, Triggers | Where-Object { $_.Triggers -match "MSFT_TaskIdleTrigger" }


HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Window Search
DWORD "AllowCortana"=0

HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRemoteShutdownRPCInterface=1

HKLM\Software\Microsoft\Windows NT\CurrentVersion\Schedule\DisableRpcOverTcp=1

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\
DWORD DisableRealtimeMonitoring=1    use at your own risk

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting
DWORD Disabled=1

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}\Commands\on-logon-autolaunch
DWORD AutoRunOnLogon=0

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}\Commands\on-logon-startup-boost
DWORD AutoRunOnLogon=0

Chrome to disable periodically scan malware:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome
this key exist wld cause "browser is managed by your organization"

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DataCollection\
"AllowTelemetry"=0
"DisableOneSettingsDownloads"=1
DoNotShowFeedbackNotifications=1

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters
DWORD DisableBandwidthThrottling=1


Windows 10 clock to show Seconds

 (dont run as admin)  HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced   ->  New > DWORD (32-bit)  ->  ShowSecondsInSystemClock=1