Hi,
I have the following Power-shell line that will search an OU for users not enabled for Microsoft Lync and then enable them
get-csaduser -filter {Enabled -ne $True} -OU "OU=myOU,OU=Accounts,OU=domain,DC=iah,DC=ac,DC=uk" | Enable-CsUser -RegistrarPool "pool.iah.ac.uk" -SipAddressType EmailAddress -SipDomain domain.ac.uk
now part of the get-csuser information returned is the email address, so what I want to do is once the account is created is email the user to let them know all from the script.
Sending email using Powershell script - SharePoint and Others - Site Home - MSDN Blogs
I know all I want to do is take each "windowsemailaddress" value returned from the filtered get-csaduser and pass it to a mail function for use as the send to address, but my PS is very basic.
Any one who is a power shell guru and could point me in the right direction I would be really grateful.
Cheers