Powershell批量修改用户的UPN后缀
Get-ADUser -Filter * -Properties * | where {$_.UserPrincipalName -ne $null} | Select-Object name,SamAccountName,UserPrincipalName name SamAccountName UserPrincipalName---- -------------- -----------------
Administrator Administrator Administrator@demo.com
Guest Guest Guest@demo.com
krbtgt krbtgt krbtgt@demo.com
Exchange Online-ApplicationAccount $331000-K0SAH4NCDJ2K Exchange_Online-ApplicationAccount@demo.com
页:
[1]