gpt4 book ai didi

c# - System.DirectoryServices.ActiveDirectory 和 Microsoft.ActiveDirectory 之间的区别

转载 作者:行者123 更新时间:2023-11-30 21:38:15 26 4
gpt4 key购买 nike

在阅读 Active Directory 时,我遇到了 System.DirectoryServices.ActiveDirectoryMicrosoft.ActiveDirectory.Management

System.DirectoryServices.ActiveDirectoryMicrosoft.ActiveDirectory.Management 有什么区别?

最佳答案

正如 @Mathias R. Jessen 在评论中暗示的那样:

System.DirectoryServices.ActiveDirectory Namespace:

The System.DirectoryServices.ActiveDirectory namespace provides a high level abstraction object model that builds around Microsoft Active Directory services tasks. The Active Directory service concepts such as forest, domain, site, subnet, partition, and schema are part of the object model.

  1. The System.DirectoryServices.ActiveDirectory namespace is used to automate Active Directory management tasks. System.DirectoryServices.ActiveDirectory is not used to access data that resides within Active Directory or any other directory service. The System.DirectoryServices namespace should be used for this purpose.

  2. The System.DirectoryServices.ActiveDirectory namespace is intended for use by application developers who are familiar with .NET Framework programming using Visual Basic .NET or C#.


Microsoft.ActiveDirectory.Management:

It is the Active Directory Module for Windows PowerShell. This is installed when you'll install Remote Server Administrations Tools or a subset of this feature (RemoteServerAdministrationTools-Roles-AD-Powershell). For management of Microsoft's Active Directory, you should import this module into PowerShell.

Windows 目录服务 API 层 的图像,取自 Active Directory, 5th Edition :

enter image description here

关于c# - System.DirectoryServices.ActiveDirectory 和 Microsoft.ActiveDirectory 之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46155481/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com