Showing posts with label Exchange 2010. Show all posts
Showing posts with label Exchange 2010. Show all posts

Friday, 10 June 2011

Exch 2010 - Change Auto Discovery URL's



Change Web Services Location – Availability Service and Out of Office (OOF)


Get-webservicesvirtualdirectory | fl identity,internalurl,externalurl

Set-WebServicesVirtualDirectory -Identity "MachineName\EWS (Default Web Site)" -ExternalURL https:// autodiscover.company.com/EWS/Exchange.asmx -BasicAuthentication:$true

Change AutoDiscover Location

get-clientaccessserver | fl

get-clientaccessserver | set-ClientAccessServer –AutoDiscoverServiceInternalUri https://autodiscover.company.com/Autodiscover/Autodiscover.xml

Change AutoDiscover Internal and External URL’s

get-autodiscovervirtualdirectory | fl

Get-AutodiscoverVirtualDirectory | Set-AutodiscoverVirtualDirectory -InternalUrl "http://autodiscover.company.com"

Get-AutodiscoverVirtualDirectory | Set-AutodiscoverVirtualDirectory -ExternalUrl "http://autodiscover.company.com"

EXCH 2010 - Adding Thumbnail Pictures



The following command imports a picture to the thumbnailphoto attribute in AD. This can be used by Outlook, Lync, SharePoint and other application to display a users picture.

Import-RecipientDataProperty -Identity "mailbox name" -Picture -FileData ([Byte[]]$(Get-Content -Path "D:\Pictures\bob.jpg" -Encoding Byte -ReadCount 0))

Thumbnail image must be less than 10k.

Exch 2010 - Manual Offline Address Book Update


POWER SHELL

Update-OfflineAddressbook “Default Offline Address List”
Update-FileDistributionService

CONSOLE

Go to the Exchange management console, under "Organization Configuration" select the "Mailbox" container, go to the "Offline Address Book" container and right-click update on the address book you want to generate.

You can monitor the status of the generation of the OAB by looking at the time stamps of the files in <Exchange install directory>\V14\ExchangeOAB\<GUID of the Address Book>

Once the address book has been generated, you can speed up its distribution by forcing an update of the distribution file service, using  Update-FileDistributionService.