diable lock screen windows
run:
gpedit.msc
go to
Computer Configuration > Administrative Templates > Control Panel > Personalization
Double-click the Do not display the lock screen policy. and make enabled
https://pureinfotech.com/disable-lock-screen-windows-10/#disable_lockscreen_windows10_regedit