Enable-UM
Diese PowerShell Skript ist entstanden, um Benutzer für Exchange UM zu aktivieren. Wer schon einmal über die Exchange 2007 Management Console versucht hat, mehrere Personen auf einen Rutsch eine UM-Mailbox zu geben, wird feststellen, dass das Kontext-Menü bei einer Mehrfachauswahl nicht vorhanden ist.
Also ist wieder PowerShell angesagt. Der Vorteil eines PowerShell Skripts ist natürlich, dass man z.B.: die Telefonnummer aus dem Benutzerobjekt auch noch etwas "SIP-tauglich" anpassen kann.
Hier ein Beispiel, welches die Mitglieder einer Gruppe ausliest und für Unified Messaging aktiviert.
$dc = "e2007"
$umUsergroup = "umUser"
$UMMailboxPolicy = "UMPolicy1"
(get-group $umUsergroup -DomainController $dc).members | `
foreach {
$User = get-User -Identity $_.DistinguishedName -DomainController $dc
$samaccountname = $User.samaccountname
$phone = $User.phone
Write-host "Processing $samaccountname Tel: $phone"
[regex]$reg=".*-(\d{2,})$"
$ext = $reg.replace($phone,'$1')
if ($ext -eq $null) {
Write-Warning -Message "SKIP $User Telephone is NULL"
}
elseif ((Get-UMMailbox -Identity $samaccountname) -eq $null) {
Write-Host "Enable $User für UMEnabled with $ext and Policy $UMMailboxPolicy"
enable-ummailbox `
-identity $samaccountname `
-Extensions $ext `'
-UMMailboxPolicy $UMMailboxPolicy
}
else {
Write-Host "SKIP $User is already UMEnabled"
}
}
Weitere Links
- UM Mailbox
- Exchange und OCS
- PowerShell Beispiele
- Benutzermanagement
- Provisioning
- E2K7:RUS
- Exchange 2007 How to Add, Remove, or Modify Extension Numbers für a UM-Enabled User
http://technet.microsoft.com/en-us/library/bb232208.aspx - How to Add, Remove, or Modify a SIP Address für a UM-Enabled User
http://technet.microsoft.com/en-us/library/bb691029.aspx - How to Add, Remove, or Modify an E.164 Address für a UM-Enabled User
http://technet.microsoft.com/en-us/library/bb676579.aspx - Exchange 2007 understanding Unified Messaging Dial Plans
http://technet.microsoft.com/en-us/library/bb125151.aspx - Exchange Unified Messaging Provisioning Scripts
http://www.shudnow.net/2010/06/13/exchange-unified-messaging-provisioning-scripts/














