溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

AD-查看賬戶信息命令 Get-aduser

發(fā)布時(shí)間:2020-09-03 06:35:28 來源:網(wǎng)絡(luò) 閱讀:10322 作者:cix123 欄目:系統(tǒng)運(yùn)維


從AD導(dǎo)出所有啟用的郵箱列表

Get-ADUser -Filter {Enabled -eq "True"} -Properties * | select Name,SamAccountName,Displayname,UserPrincipalName,Surname,GivenName


導(dǎo)出禁用的 AD 賬戶,以日期為準(zhǔn)進(jìn)行排序

Get-ADUser -Filter {Enabled -eq "false"} -Properties * | select DisplayName,UserPrincipalName,LastLogonDate | sort LastLogonDate -Descending | Export-Csv d:\DisableUser.csv -Encoding utf8


導(dǎo)出后的文件包含三列:

(由于要和別的系統(tǒng)的用戶信息做比對,所以導(dǎo)出下面的三列)

DisplayName,UserPrincipalName,LastLogonDate

AD-查看賬戶信息命令 Get-aduser




向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI