Sadece Devre Dışı Kullanıcıları Listelemek
Get-ADUser -Filter {Enabled -eq $false} -Properties DisplayName, SamAccountName | Select-Object DisplayName, SamAccountName |
Devre Dışı Kullanıcıları Son Oturum Açma Tarihi ile Listelemek
Get-ADUser -Filter {EnabledGet-ADUser -Filter {Enabled -eq $false} -Properties DisplayName, SamAccountName, LastLogonDate | Select-Object DisplayName, SamAccountName, LastLogonDate |
Devre Dışı Kullanıcıları CSV Dosyasına Kaydetmek
Get-ADUser -Filter {Enabled -eq $false} -Properties DisplayName, SamAccountName, LastLogonDate | Select-Object DisplayName, SamAccountName, LastLogonDate | Export-Csv -Path “C:\DisabledUsers.csv” -NoTypeInformation -Encoding UTF8 |