In C #, The DirectoryEntry component application instance DirectoryEntry class encapsulates nodes or objects in the Active Directory hierarchy. You can use this class to bind to objects or read and update attributes. Figure 1 shows the
Summary
The system. directoryservices. directoryentry component provides access to active directory. This article takes two simple applets as an example to illustrate how to use this component to view the information of each node in the
Obtain or set this Directoryentry.
Namespace:System. directoryservicesProgramSet:System. directoryservices(InSystem. directoryservices. dllMedium)
Syntax
C #
[Settingsbindableattribute
C # The method for changing the computer password is as follows:
/// /// Change the Windows Account Password/// /// /// /// Public static void ChangeWinUserPasswd (string username, string oldPwd, string newPwd){Try{DirectoryEntry localMachine =
Asp.net| Security | security Vulnerabilities | troubleshooting | Virtual Host Description: The environment required in this article is 2003server+iis6.0+ms sql2000
Once very early on the Internet to see an article on the
Inadvertently found on the
Be sure to save it as an array.String hostname = "localhost ";String newsitenum = "2 ";String Path = string. F "localhost"; ormat ("IIS: // {0}/w3svc/{1}/root", hostname, newsitenum );Directoryentry root = new directoryentry (PATH );
Note: The environment required in this article is 2003 SERVER + iis6.0 + MS SQL2000
I once saw an article on the Internet about for a long time. At that time, I did not care about it. Anyone who has worked on ASP virtual hosts may know that, that
Asp.net| Security | security Vulnerabilities | troubleshooting | Virtual Host Description: The environment required in this article is 2003server+iis6.0+ms sql2000
Once very early on the Internet to see an article on the
Inadvertently found on the
Using system;Using system. directoryservices;Using system. reflection;
Namespace adsix{////// Small class containing methods to configure IIS.///Class configiis{////// The main entry point for the application.///[Stathread]// Main program portal,
Using ASP. NET to operate IIS allows you to create virtual directories, virtual sites, delete virtual directories, and lists.
Key: ASP. NET users are not authorized to operate IIS, so they must be granted a high level of permissions.
Method 1: add
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.