简体   繁体   中英

How can I create a local Active Directory programatically using c#?

Problem: our tests are now failing locally because we migrated to Azure AD. We cannot be domain joined to a local AD, while being joined to an Azure AD. Now our tests fail on our local development machines because our machines are not part of a domain.

I am thinking of maybe creating a local directory programmatically before each test being ran. Is this even possible given what I've described? I am using C#. I couldn't find much information on this.

Active Directory is a windows server inbuilt role and it cannot be created programmatically. You can join your devices to both Azure AD and on-premises Active Directory - Hybrid Azure AD join. Check out this link to get more detailed information

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM