Another quick script from the Quick & Dirty category: Uniform e-mail signatures for OWA. If you don't have any third-party software in use that can also distribute standardized mail signatures in OWA, you can fall back on this quick script:
$mailboxes = get-mailbox -resultsize unlimited foreach ($mailbox in $mailboxes) { $uservars = get-user $mailbox if ($uservars) { $SamAccountName = $uservars.SamAccountName $UserPrincipalName = $uservars.UserPrincipalName [$WindowsLiveID = $uservars.WindowsLiveID $NetID = $uservars.NetID $AssistantName = $uservars.AssistantName $City = $uservars.City $Company = $uservars.Company $CountryOrRegion = $uservars.CountryOrRegion $Department = $uservars.Department $DisplayName = $uservars.DisplayName $Fax = $uservars.Fax $FirstName = $uservars.FirstName $LastName = $uservars.LastName $HomePhone = $uservars.HomePhone $Initials = $uservars.Initials $Manager = $uservars.Manager $MobilePhone = $uservars.MobilePhone $Notes = $uservars.Notes $Office = $uservars.Office $OtherFax = $uservars.OtherFax $OtherHomePhone = $uservars.OtherHomePhone $OtherTelephone = $uservars.OtherTelephone $Pager = $uservars.Pager $Phone = $uservars.Phone $PhoneticDisplayName = $uservars.PhoneticDisplayName $PostalCode = $uservars.PostalCode $PostOfficeBox = $uservars.PostOfficeBox $StateOrProvince = $uservars.StateOrProvince $StreetAddress = $uservars.StreetAddress $Title = $uservars.Title $WebPage = $uservars.WebPage [$WindowsEmailAddress = $uservars.WindowsEmailAddress $Name = $uservars.Name } #The following variables can be used for the signature: #------------------------------------------------------------------------------------------------------------------------- #Define text for the text-only signature: #------------------------------------------------------------------------------------------------------------------------- $txtsignature = ` " ---``r`n Yours sincerely`r`n $firstname $lastname`r`n $Department`r`n `r`n Fon: $phone`r`n Fax: $fax`r`n `r`n FrankysWeb`r`n " #Here Set text for the HTML signature: #------------------------------------------------------------------------------------------------------------------------- $htmlsignature = ` " <b> --- With kind regards $firstname $lastname $Department Phone: $phone Fax: $fax FrankysWeb </b> " Assign #Sigantur: #------------------------------------------------------------------------------------------------------------------------- write-host "Create signature for $SamAccountName" $signature = Set-MailboxMessageConfiguration $SamAccountName -SignatureText $txtsignature -SignatureHtml $htmlsignature -AutoAddSignature:$true }
These variables can be used to generate the signature:
$SamAccountName
$UserPrincipalName
$WindowsLiveID
$NetID
$AssistantName
$City
$Company
$CountryOrRegion
$Department
$DisplayName
$Fax
$FirstName
$HomePhone
$Initials
$LastName
$Manager
$MobilePhone
$Notes
$Office
$OtherFax
$OtherHomePhone
$OtherTelephone
$Pager
$Phone
$PhoneticDisplayName
$PostalCode
$PostOfficeBox
$StateOrProvince
$StreetAddress
$Title
$WebPage
$WindowsEmailAddress
$Name
In the lower part of the script, a signature can then be created with these variables, which is attached accordingly in OWA. Similar to Outlook.
Bitte beachten das bei der Nur-Text Signatur ein Zeilenumbruch eingefügt werden muss, damit nicht die komplette Signatur in einer Zeile steht („`r`n“)
The script applies to OWA, not Outlook. Have fun with it.