• Los geht´s
  • Software Tips
  • Hardware Tips
  • Scripting
  • Tools
  • Dies & Das
  • Impressum

AD Anzahl der User

27.01.19
by Christian
Get-ADUSER, zählen
Comments are off

Mit Powershell die Anzahl der User ausgeben

(Get-ADUser -Filter * -SearchBase „OU=Benutzer,DC=domain,DC=local“).count

Anzahl der deaktivierten AD-User

(Get-ADUser -Filter * -SearchBase „OU=Benutzer,DC=domain,DC=local“ | where {$_.enabled -ne „False“}).count

Anzahl der aktiven AD-User

(Get-ADUser -Filter * -SearchBase „OU=Benutzer,DC=domain,DC=local“ | where {$_.enabled -eq „True“}).count

Die Abfragen beziehen sich immer auf die OU=Benutzer. Lässt man diesen Part weg läuft die Abfrage über das gesamte AD.

(Visited 151 times, 1 visits today)

Die letzten Posts

Your Start Menu isn´t working
28.06.24
Url öffnen über Firefox
09.03.24
Exchange 2016 Adressbücher aktualisieren
02.03.24
Outlook 365 Active Sync Probleme
29.02.24
Günstige Fotobücher
06.11.21
Fotobuch von Saal
05.04.21

Tags

Adobe Adressbuch Affinity All IP Anhang Backup Batch Bilder Bilder mit Gutenberg Dell Directory Opus ESET ESXi Felder Firmware Fotobuch GPResult GPS Gruppenrichtlinien Itunes Lancom Modernize Theme MS Nod32 Office OKI OneNote Ordner Outlook Plugin POP3 Profile Publisher Rename Schwerwiegender Fehler Server Sophos Tools Treiber UTM Veeam VirtualDub Windows Windows 7 Wordpress

Meistbesucht

  • ProfilpfadServergespeicherte Profile umziehen (4.943)
  • VeeamVeeam Backup Modi Erklärung (3.333)
  • canonCanon Selphy CP800 und Windows 8/10 (2.768)
  • Flexfix_04Opel Astra FlexFix klemmt (2.669)
  • cmdDell Server Lüfter steuern (2.442)
  • OKI_LogoOKI C332 Login & Passwort (2.228)

Letzte Beiträge

Your Start Menu isn´t working
28.06.24
Url öffnen über Firefox
09.03.24
Exchange 2016 Adressbücher aktualisieren
02.03.24
Outlook 365 Active Sync Probleme
29.02.24
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkNo