On the domain controller, open the group policy management tool.
Create a new group policy.
Enter a name for the new group policy.
In our example, the new GPO was named: MY-GPO.
On the Group Policy Management screen, expand the folder named Group Policy Objects.
Right-click your new Group Policy Object and select the Edit option.
On the group policy editor screen, expand the Computer configuration folder and locate the following item.
Access the folder named Security options.
Enable the option named Interactive logon: Don't display last signed-in.
Enable the option named Interactive logon: Don't display username at sign-in.
Optionally, configure the information displayed on the locked screen.
Access the option named Interactive logon: Display user information when the session is locked.
Select the option to not display user information.
To save the group policy configuration, you need to close the Group Policy editor.
Congratulations! You have finished the GPO creation.