close
查AD 密碼永久有效不需變更並且匯出至c:\test.csv
EX:網域名稱 charles@aaa.com
Get-ADUser -Filter * -SearchBase "DC=aaa,DC=com" -properties displayname,samaccountname,description,Passwordneverexpires,CannotChangePassword,extensionAttribute4 | select displayname,samaccountname,description,Passwordneverexpires,CannotChangePassword,extensionAttribute4 | export-csv -path c:\test.csv -NoTypeInformation -Encoding "UTF8"
查詢帳號已停用並且匯出至C:\Disable-ADAccount.csv
Get-ADUser -Filter 'enabled -eq $FALSE' |Export-CSV C:\Disable-ADAccount.csv -NoTypeInformation -Encoding UTF8
文章標籤
全站熱搜
留言列表