![]() |
VOOZH | about |
dotnet add package System.DirectoryServices.AccountManagement --version 10.0.9
NuGet\Install-Package System.DirectoryServices.AccountManagement -Version 10.0.9
<PackageReference Include="System.DirectoryServices.AccountManagement" Version="10.0.9" />
<PackageVersion Include="System.DirectoryServices.AccountManagement" Version="10.0.9" />Directory.Packages.props
<PackageReference Include="System.DirectoryServices.AccountManagement" />Project file
paket add System.DirectoryServices.AccountManagement --version 10.0.9
#r "nuget: System.DirectoryServices.AccountManagement, 10.0.9"
#:package System.DirectoryServices.AccountManagement@10.0.9
#addin nuget:?package=System.DirectoryServices.AccountManagement&version=10.0.9Install as a Cake Addin
#tool nuget:?package=System.DirectoryServices.AccountManagement&version=10.0.9Install as a Cake Tool
Provides uniform access and manipulation of security principals across multiple principal stores. The principal objects in the Account Management API include computer, group and user objects. The principal stores includes:
// Create the principal context for the usr object.
PrincipalContext ctx = new PrincipalContext(ContextType.Domain, "fabrikam.com", "CN=Users,DC=fabrikam,DC=com", "administrator", "securelyStoredPassword");
// Create the principal user object from the context.
UserPrincipal usr = new UserPrincipal(ctx);
usr.AdvancedSearchFilter.LastLogonTime(DateTime.Now, MatchType.LessThan);
usr.AdvancedSearchFilter.LastLogonTime(DateTime.Yesterday, MatchType.GreaterThan);
// Create a PrincipalSearcher object.
PrincipalSearcher ps = new PrincipalSearcher(usr);
PrincipalSearchResult<Principal> fr = ps.FindAll();
foreach (UserPrincipal u in results)
{
Console.WriteLine(u.Name);
}
The main types provided by this library are:
System.DirectoryServices.AccountManagement.PrincipalContextSystem.DirectoryServices.AccountManagement.PrincipalSearcherSystem.DirectoryServices.AccountManagement.Principal and its subclasses: System.DirectoryServices.AccountManagement.UserPrincipal, System.DirectoryServices.AccountManagement.GroupPrincipal and System.DirectoryServices.AccountManagement.ComputerPrincipalSystem.DirectoryServices.AccountManagement is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 is compatible. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on System.DirectoryServices.AccountManagement:
| Package | Downloads |
|---|---|
|
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard. |
|
|
Abp.Zero.Ldap
Abp.Zero.Ldap |
|
|
Octopus.Shellfish
Package Description |
|
|
Shesha.Ldap
Package Description |
|
|
SuperOffice.NetServer.Core
SuperOffice NetServer Core is SuperOffice's data access technology for new applications. This is for onsite installations with the same version. This also works with SuperOffice Online. |
Showing the top 20 popular GitHub repositories that depend on System.DirectoryServices.AccountManagement:
| Repository | Stars |
|---|---|
|
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
|
|
|
opserver/Opserver
Stack Exchange's Monitoring System
|
|
|
x360ce/x360ce
Primary repository for the x360ce library, front-end and tools.
|
|
|
ariacom/Seal-Report
Database Reporting Tool and Tasks (.Net)
|
|
|
dotpcap/sharppcap
Official repository - Fully managed, cross platform (Windows, Mac, Linux) .NET library for capturing packets
|
|
|
msasanmh/DNSveil
A DNS Client Supporting DNSCrypt, Anonymized DNSCrypt, DoH, DoT, UDP And TCP.
|
|
|
wixtoolset/wix
WiX Toolset Code
|
|
|
unosquare/passcore
A self-service password management tool for Active Directory
|
|
|
kimmknight/raweb
A modern web interface for your RemoteApps hosted on Windows 10, 11 and Server.
|
|
|
CICADA8-Research/RemoteKrbRelay
Remote Kerberos Relay made easy! Advanced Kerberos Relay Framework
|
|
|
DataDog/dd-trace-dotnet
.NET Client Library for Datadog APM
|
|
|
microsoft/WindowsProtocolTestSuites
⭐⭐ Join us at SambaXP for the SMB3 IO Lab (April 20-23, 2026), see upcoming Interoperability Events
|
|
|
Dynatrace/superdump
A service for automated crash-dump analysis
|
|
|
mattjohnsonpint/SimpleImpersonation
Simple Impersonation Library for .Net
|
|
|
lithnet/access-manager
Access Manager provides web-based access to local admin (LAPS) passwords, BitLocker recovery keys, and just-in-time administrative access to Windows computers in a modern, secure, and user-friendly way.
|
|
|
signumsoftware/framework
Open Source framework for writing data-centric applications using the latest versions of .Net Core, C# (not-nullable), ASP.NET Web API, Typescript (strict), React, D3 and Sql Server or PostgreeSQL
|
|
|
jnqpblc/SharpSpray
SharpSpray a simple code set to perform a password spraying attack against all users of a domain using LDAP and is compatible with Cobalt Strike.
|
|
|
emoacht/ManagedNativeWifi
A managed implementation of Native Wifi API
|
|
|
GeertBellekens/Enterprise-Architect-Toolpack
Addins and tools for Sparx Systems Enterprise Architect
|
|
|
FuseCP/FuseCP
Multi Server Control Panel for Windows based on C#
|
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0-preview.5.26302.115 | 1,032 | 6/9/2026 |
| 11.0.0-preview.4.26230.115 | 2,158 | 5/12/2026 |
| 11.0.0-preview.3.26207.106 | 3,255 | 4/14/2026 |
| 11.0.0-preview.2.26159.112 | 3,323 | 3/10/2026 |
| 11.0.0-preview.1.26104.118 | 3,925 | 2/10/2026 |
| 10.0.9 | 56,041 | 6/9/2026 |
| 10.0.8 | 273,755 | 5/12/2026 |
| 10.0.7 | 339,703 | 4/21/2026 |
| 10.0.6 | 130,978 | 4/14/2026 |
| 10.0.5 | 498,429 | 3/12/2026 |
| 10.0.4 | 42,835 | 3/10/2026 |
| 10.0.3 | 406,943 | 2/10/2026 |
| 10.0.2 | 456,883 | 1/13/2026 |
| 10.0.1 | 363,060 | 12/9/2025 |
| 9.0.17 | 5,005 | 6/9/2026 |
| 9.0.16 | 30,542 | 5/12/2026 |
| 9.0.15 | 88,148 | 4/14/2026 |
| 9.0.14 | 81,208 | 3/10/2026 |
| 9.0.13 | 50,080 | 2/10/2026 |
| 9.0.12 | 78,920 | 1/13/2026 |