HI Expert,
I really need your help.
we are using windows server 2016, and our AD users' Samaccountname and UPN are not the same as their email address. Now We'd like to bulk edit users' samaccount name and upn based on users' email address using the following CSV file.
this table describe the current situation
sAMAccountName | UserPrincipalName | Emailaddress |
LMing | ||
WYi | ||
HJiu |
the following is what I want to achieve
sAMAccountName | UserPrincipalName | Emailaddress |
Li.Ming | ||
Wang.Yi | ||
He.Jiu |
Because I am very new to powershell and script. Anyone has suggestions are highly appreciated .
Regards,
jianggai