# Outlook Store Display Name
# http://blogs.msdn.com/b/emeamsgdev/archive/2012/10/29/outlook-code-change-the-name-of-the-root-folder-in-outlook-2010-after-an-smtp-address-change.aspx
$outlook = New-Object -ComObject 'Outlook.Application'
$stores = $Outlook.GetNamespace("MAPI").Session.stores
Foreach ($Store in $stores){
If ($store.ExchangeStoreType -eq "0") {
$updatestore=$store.GetRootFolder()
$updatestore.Name="Work-Email"
}
}
No comments:
Post a Comment