您好,登錄后才能下訂單哦!
從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
免責(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)容。