websitepanel/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code
robvde 43b73aee66 Added the ability to stamp mailboxes with a mailbox plan as well as those
mailboxes that have no mailbox plan assigned yet.

The following SQL statement will 'upgrade' the user data to work with the new
exchange 2010 SP2 provider. Ensure you replace the variables with values that
matches your environment.

DECLARE  @NetBIOSDomain nvarchar(20)
DECLARE  @ExchangeOrgRoot nvarchar(256)

SET @NetBIOSDomain = 'MYDOMAIN'
SET @ExchangeOrgRoot = 'CN=First Organization,CN=Microsoft Exchange,CN=Services,
CN=Configuration,DC=mydomain,DC=local'

UPDATE ExchangeAccounts SET SamAccountName = @NetBIOSDomain+'\'+AccountName
WHERE AccountID IN  (SELECT AccountID FROM ExchangeAccounts
WHERE AccountType IN (3,7) AND SamAccountName = '')

INSERT INTO ServiceItemProperties (ItemID, PropertyName, PropertyValue)
(SELECT SP.ItemID, 'AddressBookPolicy',
PV = 'CN='+SP.PropertyValue+' Address Policy,CN=AddressBook Mailbox Policies,'
+ @ExchangeOrgRoot
FROM         ServiceItemProperties AS SP
WHERE     (PropertyName = 'OrganizationID') AND (ItemID IN
 (SELECT     ItemID
 FROM          ServiceItemProperties AS ServiceItemProperties_1
 WHERE      (PropertyName = 'GlobalAddressList') AND (PropertyValue <> ''))))

UPDATE SP SET PropertyValue='CN='+SP2.PropertyValue+' Rooms,CN=All Address Lists
,CN=Address Lists Container,'+@ExchangeOrgRoot
FROM ServiceItemProperties AS SP
JOIN ServiceItemProperties AS SP2 ON SP.ItemID = SP2.ItemID
AND SP.PropertyName='RoomsAddressList'
WHERE (SP2.PropertyName = 'OrganizationID') AND (SP2.ItemID IN
 (SELECT     ItemID
 FROM          ServiceItemProperties AS ServiceItemProperties_1
 WHERE      (PropertyName = 'GlobalAddressList') AND (PropertyValue <> '')))
2012-07-12 17:14:19 +04:00
..
Comments Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
Common More granularity to the available roles: 2012-07-11 18:18:13 +04:00
Data Added the ability to stamp mailboxes with a mailbox plan as well as those 2012-07-12 17:14:19 +04:00
DatabaseServers Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
DnsServers DNS SRV Record support. Only supported with MS DNS Provider 2012-07-04 13:18:58 +04:00
Ecommerce Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
ExchangeServer Added the ability to stamp mailboxes with a mailbox plan as well as those 2012-07-12 17:14:19 +04:00
Files Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
FtpServers Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
HostedSolution Lync Server 2010 Multitenant Core Unified Communications Support Added 2012-07-10 11:19:55 +04:00
Log Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
MailServers Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
OperatingSystems Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
Packages Added the ability to stamp mailboxes with a mailbox plan as well as those 2012-07-12 17:14:19 +04:00
Provisioning Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
SchedulerTasks Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
Scheduling Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
Servers Update Copyright information on updated files 2012-07-04 08:37:14 -04:00
SharePoint Update Copyright information on updated files 2012-07-04 08:37:14 -04:00
StatisticsServers Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
System Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
Tasks Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
Users Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
Virtualization Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
VirtualizationForPrivateCloud Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
WebAppGallery Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
WebServers Update Outercurve Copyright to 2012 in all files 2012-06-04 22:14:11 -04:00
Wizards DNS SRV Record support. Only supported with MS DNS Provider 2012-07-04 13:18:58 +04:00