Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a small active directory but want to be able to create and delete users from 1 point. I think powershell is a good way to do this.

But is it possible to create a user, homedir, profile, mailbox and lync user from one powershell window?

And if this is possible can someone please send me in the right direction?

share|improve this question

Check out ADSI (Active Directory Services Interface):

share|improve this answer

Yes. Use PowerShell IDE to create the script and test each command based on variables you ask the admin for.

The script will have to load the cmdlets for each tool. One for AD, one for Lync, one for Exchange. First the tools will need to be installed on the computer where you run the PowerShell script from.

ADSI can do the AD stuff but is only part of the problem so I would stick with pure PowerShell cmdlets.

I recommend doing this on Windows Server 2008 R2 which has the AD Module for PowerShell feature.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.