Modify AD Accounts, PowerShell

Is there a way to modify AD Accounts: add a set of groups, add a home drive path, info into Notes in Telephone tab , add a mailbox , add a address to SMTP (Exchange Console) , enable MS Lync account .. by using PowerShell?

Something like this:

Add-PSSnapin -Name Quest.ActiveRoles.ADManagement


Get-QADUser 'username' | Get-QADMemberOf |  % {Add-QADGroupMember -Identity $_ -Member '<newusername>'}

???
Thanks,
LVL 4
mvalencia2003Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Guy LidbetterCommented:
Hi mvalencia,

Yes, everything mentioned can be done via powershell. you would need a module or snapin for these though.

enabling the user to use Lync would need the Lync Module, adding a mailbox the Exchange Snapin, and the rest can either be done by Quest Tools or the ActiveDirectory Module.

The commands you are looking for are:
AD:
Add-ADgroupMember  (Group memberships)
Set-ADUser (Add Home Drive Paths, Add Telephone attribute values)

Exchange:
New-Mailbox (To create a user from scratch - You'll still need the AD commands for some attributes)
New-MailUser (Enable a user that is already created)

Lync:
Enable-CSUser (to enable the account to use lync and assign a SIP address)

If you have specific detail you would like to go into, fire away with your questions,

Regards

Guy

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.