This morning I was asked to update the Global Address List and Offline Address Book in an Exchange environment.
You could wait for Exchange to do it automatically (the default schedule is once a day) but what when you want to force the update to take place right now?
Well… again here comes PowerShell to the rescue:
1 |
Get-GlobalAddressList | Update-GlobalAddressList |
So now that the GAL is updated there could be some users that are using a Offline Address Book (OAB).
So, what is the PowerShell command to update this?
1 |
Get-OfflineAddressBook | Update-OfflineAddressBook |
And last… when you update the OAB you’ll also need to update let the Client Access Server know that there is an updated OAB.
Also this you can accomplish through PowerShell:
1 |
Get-ClientAccessServer | Update-FileDistributionService |
is there a powershell way to save the gal into a users contact list?
Thanks for this. I had found the info to update the OAB elsewhere, but no mention of the update GAL. You rock!
Hello Dragunbayne,
Glad you found it useful 🙂
Jeff.
get and update are not recognized as commands.
so useless this
Hi Johan,
You’ve just walked into an error that every beginner PowerShellian (and more advanced, too) encounters soon or later.
PowerShell commands consist of a Verb, a Dash, an optional Prefix and a Noun. You forgot the dash, so it won’t recognize it as a command.
So, use ‘Get-GlobalAddressList’ and ‘Update-GlobalAddressList’ instead of ‘Get GlobalAddressList’ and ‘Update GlobalAddressList’.
Jeff.
Does the command “Update-FileDistributionService” still works on Exchange2013 ? I got a error, the term is not recognized.
The answer is: No.
https://technet.microsoft.com/en-us/library/bb124697%28v=exchg.141%29.aspx?f=255&MSPPError=-2147217396