Friday, December 14, 2012

Lync Conferencing Announcement management With Powershell

Lync Conferencing Announcement management With Powershell

As mentioned in the Technet article
http://technet.microsoft.com/en-us/library/gg398834.aspx below o
the output of the
Get-CsDialinConferencingConfiguration command is

Identity                                                           : Global
EntryExitAnnouncementsType             : ToneOnly
EnableNameRecording                             : True
EntryExitAnnouncementsEnabledByDefault : False


EnableNameRecording   :Determines whether anonymous participants are asked to record their name before entering the conference. The default value is "$true," which means that anonymous participants are prompted to state their name when joining a conference. (Authenticated participants do not record their name because their display name is used instead.)

EntryExitAnnouncementsEnabledByDefault  : Indicates whether announcements are turned on or off by default. The default value is "$false," which means that by default there are no announcements when participants join or leave a conference. The meeting organizer can override this setting when scheduling a meeting.

EntryExitAnnouncementsType  : Indicates the action taken whenever a participant joins or leaves a conference for which announcements are enabled. The default value is "UseNames," which means there is an announcement similar to the following: "Ken Myer has joined the conference" when announcements are turned on.

Set-CsDialInConferencingConfiguration -EnableNameRecording $True -EntryExitAnnouncementsType "ToneOnly"
The only other option is "UseName" here the entry/exit announcement will be with the user name


Get-CsDialInConferencingConfiguration -Filter "site:*" | Set-CsDialInConferencingConfiguration -EnableNameRecording $True
There we can put the different site name by replacing the * accordingly.


Get-CsDialInConferencingConfiguration | Set-CsDialInConferencingConfiguration -EntryExitAnnouncementsEnabledByDefault $false

Wednesday, December 12, 2012

Most useful Powershell Commands for Exchange

To track emails whether it is delivered or not

1) Get-MessageTrackingLog -Recipients yourmailid@yourdomain.com -sender mailID2@xyz.com | fl *time*,*subject*

If you want to input the sender and recipient you can use the below command
2) Get-MessageTrackingLog  -sender (read-host "Sender") -Recipients (read-host "Recepient")| fl *time*,*subject*

Atleast Sender name or  recipient name anyone should be there to get the result. If you want to get all Senders or all recipient don’t give any inputs just hit enter in the prompt

3) Get the list of   SMTP addresses
Get-Mailbox -ResultSize Unlimited |Select-Object DisplayName,ServerName,PrimarySmtpAddress, @{Name=“EmailAddresses”;Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq “smtp”} | ForEach-Object {$_.SmtpAddress}}} |Export-csv Addresslist.csv
This will generate the list of all user details with their primary and secondary SMTP address and import to a csv file


4) get the list of Active Directory users who haven’t updated their Phone numbers
 
get-user -resultsize Unlimited |Where {$_.mobilePhone.length  -lt 8 -and $_.Phone.length -lt 8 -and $_.SamaccountName -like "U*"} |select Name,SamaccountName,MobilePhone,Phone |export-csv E:\MissingNumbers.csv –NoTypeInformation

5) Get the List of all email address of users to a powershell.
This script  can also used to get the complete list of secondary email addressess  or to  export Primary and secondary email IDs to csv


Get-Mailbox -ResultSize Unlimited | Select-Object DisplayName,@{Name="EmailAddresses";Expression={$_.EmailAddresses |Where-Object {$_ -LIKE "SMTP:*"}}} | Sort | Export-Csv E:\Sachin\SecEmail.csv