Improving performance of System.DirectoryServices.AccountManagement
问题 I have a program that will let me manage users on our terminal server that we use to demo our software. I have been trying to improve the performace of adding users to the system (It adds the main account then it adds sub accounts if needed, for example if I had a user of Demo1 and 3 sub users it would create Demo1, Demo1a, Demo1b, and Demo1c.) private void AddUsers(UserInfo userInfo, InfinityInfo infinityInfo, int subUserStart) { using (GroupPrincipal r = GroupPrincipal.FindByIdentity