private ADGroup CreateOrMoveEWPGroup(ADGroup ewp, ADOrganizationalUnit usgContainer) { if (ewp == null) { return(this.CreateGroup(usgContainer, "Exchange Windows Permissions", 0, WellKnownGuid.EwpWkGuid, Strings.ExchangeWindowsPermissionsDescription)); } if (!ewp.Id.IsDescendantOf(usgContainer.Id)) { ewp.SetId(usgContainer.Id.GetChildId("CN", ewp.Id.Rdn.UnescapedName)); InitializeExchangeUniversalGroups.SaveGroup(this.rootDomainRecipientSession, usgContainer.Id, ewp); TaskLogger.Trace(Strings.InfoMovedGroup(ewp.DistinguishedName, ewp.Id.Parent.ToDNString(), usgContainer.Id.ToDNString())); } return(ewp); }