none
How to set up receiving connectors ? RRS feed

ตอบทั้งหมด

  • this seems a good configuration for exchange server !

    thanks a lot

    19 มีนาคม 2561 12:27
  • c'est un très bonne question

    A laquelle il faut faire de plus amples recherches pour la résoudre

    19 มีนาคม 2561 12:27
  • Si vous voulez importer des utilisateurs AD

    # Charger le shell exchange et ad
    $server1 = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://server1.tetras.me/PowerShell/ -Authentication Kerberos
    Import-PSSession $server1

    $ad1 = New-PSSession -ComputerName server1 -Authentication Kerberos
    Import-Module DnsServer -PSSession $ad1
    Import-Module ActiveDirectory -PSSession $ad1

    # Ajouter le domaine Tetras.me
    Add-DnsServerPrimaryZone -Name "contoso.com" -ReplicationScope Domain
    Add-DnsServerResourceRecord -Name . -ZoneName contoso.com -MX -MailExchange server1.tetras.me -Preference 10
    New-AcceptedDomain -Name contoso.com -DomainName contoso.com -DomainType Authoritative

    # OU et Addresses policy
    New-ADOrganizationalUnit -Name "Contoso" -Path "DC=tetras,DC=me"
    New-EmailAddressPolicy -Name "Contoso" -IncludedRecipients AllRecipients -RecipientContainer "Contoso" -EnabledEmailAddressTemplates SMTP:%g.%s@contoso.com,smtp:%m@contoso.com
    Update-EmailAddressPolicy -Identity "Contoso"

    # Charger le fichier users.cvs
    $users = (Import-Csv -Delimiter ";" -Path .\users.csv)

    # Creer les utilisateurs
    $password = $password = ConvertTo-SecureString -String "Password1" -AsPlainText -force
    foreach($user in $users) {
     New-Mailbox -Name $user.Login -FirstName $user.FirstName -LastName $user.LastName -DisplayName "$($user.FirstName) $($user.LastName)" -OrganizationalUnit "Contoso" -UserPrincipalName "$($user.Login)@contoso.com" -Password $password
     Set-User -Identity $user.Login -Department $user.Department -Office $user.Office -Phone $user.Phone -Company "Contoso Ltd."
    }

    # Definir les parametres regionaux du Webmail
    foreach($mbx in (Get-Mailbox -OrganizationalUnit "Contoso")) {
      Set-MailboxRegionalConfiguration -Identity $mbx.Alias -Language "fr-FR" -DateFormat "dd/MM/yyyy" -TimeFormat "HH:mm" -TimeZone "Romance Standard Time"
    }

    # Creer les groupes par services
    $departments = (Get-User -OrganizationalUnit Contoso | Select-Object -Property Department -Unique)
    foreach($department in $departments) {
      New-DistributionGroup -Name $department.Department -OrganizationalUnit "Contoso" -Type Security
    }

    # Remplir les groupes
    foreach($user in Get-User -OrganizationalUnit Contoso) {
      Add-DistributionGroupMember -Identity $user.Department -Member $user.UserPrincipalName
    }

    19 มีนาคม 2561 12:56