2016-03-10 42 views

回答

0

這就是所謂的多坦兌換,如果我正確地讀你的問題。這聽起來像你想在一臺服務器來管理多個客戶端,而不是讓他們在地址簿,GAL的,聯繫人列表看到對方,等

是的,這是可能的,並不難做到。你可以a)購買產品來爲你管理它(基於每年的成本加上每個用戶的成本),或者只是在PowerShell中免費使用它。

請谷歌「的PowerShell多租戶交流」,你會發現你在找什麼。對於stackexchange上的一個簡單帖子,有很多步驟和太多步驟,但假設您是一個合理的Exchange管理員,這不是一件困難的任務。

總之。在AD中創建一個名爲「tenants」或類似的新OU。假設您現有的AD環境是「existing.com」。我們將爲它添加「client1.com」,與現有用戶或其他租戶分離。

現在進入的PowerShell(交換顯然):

#***********CREATE THE NEW ACTIVE DIRECTORY CONTAINERS 
New-ADOrganizationalUnit -Name client1 -Path "OU=Tenants,DC=existing,DC=com" 
Set-ADForest -Identity existing.com -UPNSuffixes @{add="client1.com"} 

#**********CREATE THE ACCEPTED DOMAIN NAME(S) FOR EMAILS (ADD BELOW AS REQUIRED) 
New-AcceptedDomain -Name "client1.com" -DomainName client1.com -DomainType:Authoritative 

#**********CREATE THE UNIQUE GAL & ADDRESS BOOKS 
New-GlobalAddressList -Name "client1 – GAL" -ConditionalCustomAttribute1 "client1" -IncludedRecipients MailboxUsers -RecipientContainer "existing.com/Tenants/client1" 
New-OfflineAddressBook -Name "client1" -AddressLists "client1 – GAL" 

#**********CREATE THE UNIQUE GROUPS (rooms, users, etc) 
New-AddressList -Name "client1 – All Rooms" -RecipientFilter "(CustomAttribute1 -eq 'client1') -and (RecipientDisplayType -eq 'ConferenceRoomMailbox')" -RecipientContainer "existing.com/Tenants/client1" 
New-AddressList -Name "client1 – All Users" -RecipientFilter "(CustomAttribute1 -eq 'client1') -and (ObjectClass -eq 'User')" -RecipientContainer "existing.com/Tenants/client1" 
New-AddressList -Name "client1 – All Contacts" -RecipientFilter "(CustomAttribute1 -eq 'client1') -and (ObjectClass -eq 'Contact')" -RecipientContainer "existing.com/Tenants/client1" 
New-AddressList -Name "client1 – All Groups" -RecipientFilter "(CustomAttribute1 -eq 'client1') -and (ObjectClass -eq 'Group')" -RecipientContainer "existing.com/Tenants/client1" 

#**********CREATE THE EMAIL ADDRESS POLICIES UNIQUE TO THE CLIENT 
New-EmailAddressPolicy -Name "client1 – EAP" -RecipientContainer "existing.com/Tenants/client1" -IncludedRecipients "AllRecipients" -ConditionalCustomAttribute1 "client1" -EnabledEmailAddressTemplates "SMTP:%[email protected]","smtp:%g.%[email protected]","smtp:%[email protected]" 
Set-EmailAddressPolicy -Identity "client1 – EAP" -EnabledPrimarySMTPAddressTemplate "SMTP:%[email protected]" 
New-AddressBookPolicy -Name "client1" -AddressLists "client1 – All Users", "client1 – All Contacts", "client1 – All Groups" -GlobalAddressList "client1 – GAL" -OfflineAddressBook "client1" -RoomList "client1 – All Rooms" 

#**********CREATE THEM A MEETING ROOM TO SHARE 
New-Mailbox -Name 'client1 meeting' -Alias 'client1_meeting' -OrganizationalUnit 'existing.com/Tenants/client1' -UserPrincipalName '[email protected]' -SamAccountName 'client1_meeting' -FirstName 'Meeting' -LastName 'Room' -AddressBookPolicy 'client1' -Room 
Set-Mailbox client1_meeting -CustomAttribute1 'client1' 
Set-CalendarProcessing -Identity client1_meeting -AutomateProcessing AutoAccept -DeleteComments $true -AddOrganizerToSubject $true -AllowConflicts $false 

#**********SET A TEMP PASSWORD (later on, change it and set the user's password to never expire. I'll put the powershell to do that in later. For now, just use the GUI. 
$password = Read-Host "Enter password" -AsSecureString 
mysupersecretpassword 

New-Mailbox -Name 'Homer Simpsons' -Alias 'client1_arim' -OrganizationalUnit 'existing.com/Tenants/client1' -UserPrincipalName '[email protected]' -SamAccountName 'client1_homer' -FirstName 'Homer' -LastName 'Simpson' -Password $password -ResetPasswordOnNextLogon $false -AddressBookPolicy 'client1' 
Set-ADUser -Identity client1_arim -PasswordNeverExpires $true 

#**********TAG THE NEWLY CREATED MAILBOXES TO THE CUSTOM ATTRIBUTE, SO enter code hereTHEY CAN SEE EACH OTHER, GET THEIR GAL, BOOKS, ETC. 
Set-Mailbox client1_homer -CustomAttribute1 "client1" 

完成任務。現在你有一位新的房客,對其他房客是隱藏的。對每個租戶重複此過程。不用說,從現在開始你不能使用GUI來管理用戶 - 你需要使用powershell,並且記住爲租戶分配用戶,組,別名,聯繫人等,否則他們會贏得「對他們來說是可見的(或者更糟糕的是,對於錯誤的羣體而言是可見的)。

一錘定音 - 上述PowerShell是所有測試和功能在Exchange 2013年,我假定這是2010年確定,但我創建了名的SPWeb OU的OU在Active Directory中可能會有小的調整,2010年

+0

,但我不明白這一步:「讓我們假設你現有的AD環境是」existing.com「,並且我們將添加」client1.com「到它」。我無法找到要添加client1.com的位置 – Vietprogrammer

相關問題