Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

Check out ADSI (Active Directory Services Interface): http://psobject.codeplex.com/wikipage?title=ADSI%20and%20AD

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.