How would code look like for accessing another domain in AD and creating a user!
NON-CMDLET’s! .NET or VB Script only!
I Have an account on the other domain which I can use to create this use ron the other domain.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Take a look here System.DirectoryServices.AccountManagement.
In powershell you need to load assembly for working with it:
the code looks like that in msdn link.