iT邦幫忙

1

ldap欄位應用

請教大家
有工具或指令可以查到那些帳號的userPrincipalName沒有值或是空的呢?謝謝

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

2
jeles51
iT邦研究生 3 級 ‧ 2019-09-24 08:27:39

Powershell

Get-ADuser -Filter 'userPrincipalName -NotLike "*"'
tewboo iT邦新手 5 級 ‧ 2019-09-24 09:38:26 檢舉

/images/emoticon/emoticon08.gif

ektrontek iT邦研究生 1 級 ‧ 2019-09-24 20:59:29 檢舉

有試了,但有錯誤訊息,但我google找到的資訊跟您依樣https://www.computerperformance.co.uk/powershell/get-aduser-filter/, 有其他建議嗎? 感謝
https://ithelp.ithome.com.tw/upload/images/20190924/200037056BbZbYMk5M.jpg

jeles51 iT邦研究生 3 級 ‧ 2019-09-25 08:14:29 檢舉

在 W7/W10 要安裝 Remote Server Administration Tools (RSAT),
或是直接在 DC 裡的POWERSHELL 執行就可以.

可參考 https://dotblogs.com.tw/roypeng/2015/12/17/110043

0
tewboo
iT邦新手 5 級 ‧ 2019-09-24 09:38:43

感谢分享!

我要發表回答

立即登入回答