If you want to hide all the accounts from the Sign-in or Log-in screen, follow the linked post. It will replace the current login screen with a prompt where the user needs to enter the username manually. No user account is displayed in this case.
Hide specific User Accounts from the Sign-in screen on Windows 11/10
Since we are hiding that user account, it means we do not want the person to use it at all. Follow the steps to hide a specific User Account from the sign-in screen or login screen in Windows 11/10: To bring back the username in the Login Screen, type the following and hit Enter: Here [USERNAME] = AK. It will activate the user account, and it will show the user account on the login screen. If you cannot use the Net User command, then you can also use the Registry method. It works on Windows 10 Home as well.
Show or Hide user account On Sign in screen using Registry
Here when you will select Key it will create a folder. Do remember that. Open Registry Editor and navigate to the following path: Right-click on Winlogon, select New >Key from the menu. Name the new key as SpecialAccounts. Right-click the SpecialAccounts key, select New >Key from the menu. Name the new key as UserList. Inside of UserList, again right-click, and this time choose New> DWORD (32-bit) Value. Make sure to name this DWORD the same as the user account name you plan to hide. Then set the value as 0. You can double-click to edit the value. To unhide, either remove the DWORD or set it to 1. If this key exists, then you will need not to create the values manually- We hope the tutorial was easy to follow, and you were able to show or hide the specific User Accounts from the Sign-in screen on Windows 11/10.