Exchange OWA 2010签名策略

我有一个Exchange 2010环境。 对于Outlook(桌面版本),我们在组策略中设置了一个脚本设置,以在组织中推出标准化签名。 我想为OWA做同样的事情,但是

  1. 我不想使用传输规则,因为用户在编写消息的时候看不到他们的签名。 我们希望他们能够看到签名
  2. 有很多软件可以做到这一点,但我们正在努力降低成本。

如果我使用Set-MailboxMessageConfiguration,是否可以从Active Directory中获取数据来创build签名,给定交换用户ID? 我知道这种方式,我必须按计划运行脚本来说明任何更新和新用户。

我慢慢地写了一个脚本来做我所需要的,我会分享一个消毒版本。 对于每个邮箱,分配他们的签名 – 文本和HTML版本。 根据用户具有的电话types,相应地使用他们的标志。

Import-Module ActiveDirectory . 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1' Connect-ExchangeServer -auto Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 $userList = get-mailbox -resultsize unlimited | where-object {$_.RecipientTypeDetails -eq "UserMailbox"} | sort-object alias foreach($user in $userList) { $ui = get-aduser $user.alias -properties * $telLine = "" $telLineHTML = "" $telLineText = "" if($ui.telephoneNumber -ne $null -and $ui.Mobile -ne $null -and $ui.Fax -ne $null){ $telLine = "Tel: " + $ui.telephoneNumber + " | Cell: " + $ui.Mobile + " | Fax: " + $ui.Fax } elseif($ui.telephoneNumber -ne $null -and $ui.Mobile -ne $null){ $telLine = "Tel: " + $ui.telephoneNumber + " | Cell: " + $ui.Mobile } elseif($ui.telephoneNumber -ne $null -and $ui.Fax -ne $null){ $telLine = "Tel: " + $ui.telephoneNumber + " | Fax: " + $ui.Fax } elseif($ui.telephoneNumber -ne $null){ $telLine = "Tel: " + $ui.telephoneNumber } elseif($ui.Mobile -ne $null){ $telLine = "Cell: " + $ui.Mobile } if($telLine -ne "") { $telLineHTML = $telLine + "<br>" $telLineText = $telLine + "`n" } $t = $ui.DisplayName + " | " + $ui.Title + "`n" + $ui.Company + "`n" + $ui.StreetAddress + ", " + $ui.City + ", " + $ui.State + ", " + $ui.PostalCode + "`n" + $telLineText + "Email: " + $ui.EmailAddress.ToLower() $h = "<div style='font-family:Tahoma; font-size:13px'><span color='#041F3C' style='font-family:Calibri; font-size:10pt'><strong>" + $ui.DisplayName + " | </strong></span><span color='#F37021' style='font-family:Calibri; font-size:10pt'><strong><font color='#f37021'>" + $ui.Title + "</font></strong></span><br><span style='font-family:Calibri; font-size:10pt'>" + $ui.Company + "<br>" + $ui.StreetAddress + ", " + $ui.City + ", " + $ui.State + ", " + $ui.PostalCode + "<br>" + $telLineHTML + "Email: <a href='mailto:" + $ui.EmailAddress.ToLower() + "'>" + $ui.EmailAddress.ToLower() + "</a></span></div>" Set-MailboxMessageConfiguration $ui.SamAccountName -SignatureText $t -signatureHTML $h #get-MailboxMessageConfiguration $ui.SamAccountName | select SignatureText, SignatureHTML | format-list }