Export locked User Accounts Search-ADAccount –LockedOut Import-Module ActiveDirectory Search-ADAccount –LockedOut | Select -Property Name,DistinguishedName Import-Module ActiveDirectory Search-ADAccount -SearchBase “OU=TestOU,DC=NDSEDV,DC=de” –LockedOut | Select -Property Name,DistinguishedName Import-Module
WeiterlesenSchlagwort: csv
Powershell AD – deaktivierte Benutzer in csv exportieren
Export disabled Users Search-ADAccount –AccountDisabled -UsersOnly Import-Module ActiveDirectory Search-ADAccount –AccountDisabled -UsersOnly | Select -Property Name,DistinguishedName Import-Module ActiveDirectory Search-ADAccount -SearchBase “OU=TestOU,DC=NDSEDV,DC=de” –AccountDisabled -UsersOnly | Select -Property
WeiterlesenPowershell AD – Exportiere Mitglieder eine Gruppe in csv
Export Members from Security Group $GroupName = “Domain Admins” Get-ADGroupMember -Identity $GroupName | Select Name, SamAccountName | Export-CSV “C:\\Temp\\ADGroupMembers.csv” -NoTypeInformation -Encoding UTF8
Weiterlesen