Disable users account move them to different OU
Powershell Commands
Search-ADAccount –AccountDisabled –UsersOnly –SearchBase “DC=domain, DC=local” |Move-ADObject –TargetPath “OU=Disable Account, DC=domain,DC=local”
11 Mart 2015 Çarşamba
10 Mart 2015 Salı
Old Disabled Users list last logon date With Powershell
Old Disabled Users list last logon date With Powershell
12 month old
Search-ADAccount -accountdisabled | where {$_.lastlogondate -lt (get-date).addmonths(-12)} | FT Name,samaccountname,LastLogonDate | out-file -filepath C:\export.txt –noclobber
12 month old
Search-ADAccount -accountdisabled | where {$_.lastlogondate -lt (get-date).addmonths(-12)} | FT Name,samaccountname,LastLogonDate | out-file -filepath C:\export.txt –noclobber
Kaydol:
Kayıtlar (Atom)