Domain Username Active Directory
Answer is yes you can but you need to aware of the issues it can occur as well.
Domain username active directory. A user account is not simply a name and password. You can also set the parameter to a user object variable such as localuserobject. The active directory users and computers mmc aduc will enforce unique values but you can assign duplicate values for userprincipalname in code. That would need to be changed manually but usually it is best to leave it be.
Using option 2 and option 3 will require you to add a new accepted domain then change the email address policies to use that new domain and finally to. How to rename an active directory domain user account renaming a user account is convenient when an employee is replaced by another employee. Address profile path logon script organization details and adding the user to other active directory groups to provide access to additional domain resources. You can identify a user by its distinguished name dn guid security identifier sid security account manager sam account name or name.
If this is a small environment you can use a cloud or agent based directory like jumpcloud or azure ad. This completes creating the new active directory user account. The identity parameter specifies the active directory user to get. It is also a set of permissions and group memberships and therefore when you rename a user account verify all the user object s attributes.
The get aduser cmdlet gets a specified user object or performs a search to get multiple user objects.