gaohan 发表于 2018-9-1 11:19:25

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]
查看完整版本: Powershell批量修改用户的UPN后缀