dockur / windows

Windows inside a Docker container.
MIT License
17.49k stars 1.5k forks source link

Unlocking locked user account #704

Closed marcschroeder closed 1 month ago

marcschroeder commented 1 month ago

Operating system

Windows 11

Description

We have a working installation of a dockur Windows 11 image. Unfortantly, we got the user account locked out. Is there a way to unlock the account again? E.g. by accessing the windows command line?

Docker compose

docker run -it -d --restart=always -p 3389/tcp -p 3389/udp --device=/dev/kvm -e RAM_SIZE='8G' -e CPU_CORES='4' -e VERSION='win11' -v /data/storage --stop-timeout 120 --cap-add NET_ADMIN dockurr/windows

Docker log

BdsDxe: loading Boot0003 "Windows Boot Manager" from HD(1,GPT,70D23821-F9E4-4A85-B263-74DEE383D623,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi BdsDxe: starting Boot0003 "Windows Boot Manager" from HD(1,GPT,70D23821-F9E4-4A85-B263-74DEE383D623,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi

Screenshots (optional)

image

MMaaxx3253 commented 1 month ago

try renaming account, re-enabling RDP, reinstall (as a last resort)

marcschroeder commented 1 month ago

I haven't found a solution to this issue. However the account is being unlocked automatically after some time. So disabling the RDP / VNC access and keeping the machine running without internet access should solve the issue after some time.