Basic Exchange PowerShell command
_______________________________________________________________________________
1. Установка PrimarySmtpAddress в Exchange
get-mailbox a.petrov | fl name, alias, primarysmtpaddress, emailaddresses
Name : Петров Андрей Вячеславович
Alias : A.Petrov
PrimarySmtpAddress : A.Petrov2@domain.ru
EmailAddresses : {smtp:a.petrov@domain.ru, SMTP:A.Petrov2@domain.ru}
EmailAddresses : {smtp:a.petrov@domain.ru, SMTP:A.Petrov2@domain.ru}
set-Mailbox a.petrov -PrimarySmtpAddress a.petrov@domain.ru
WARNING: Couldn’t update the primary SMTP address because this mailbox is configured to use an e-mail address policy.
To disable the e-mail address policy for this mailbox, run the command with the EmailAddressPolicyEnabled parameter set
to $false.
to $false.
добавьте к команде этот параметр: -EmailAddressPolicyEnabled $false
________________________________________________________________________________
2. Копирование ящика в .pst файл
New-MailboxExportRequest -Mailbox Bart -FilePath \\LONEX1\PSTFileShare\Bart_Mailbox.pst
______________________________________________________________________
3. Создание почтового ящика существующему пользователю в AD.
The following command enables a mailbox for an existing Active Directory user (Bart)with the domain and alias combination adatum\Bart by creating a mailbox in the mailboxdatabase named MailboxDatabase:
Enable-Mailbox -Identity adatum\Bart -Database MailboxDatabase
________________________________________________________________________________________
4. The following command creates a mailbox database named MailboxDatabase on theserver LON-EX1:
5. The following command creates a query-based dynamic distribution group named DDGthat is located in the organizational unit (OU) and has the alias DDGAlias:
New-DynamicDistributionGroup -Name DDG -Alias DDGAlias -OrganizationalUnit OU -IncludedRecipients MailboxUsers
___________________________________________________________________________________________________
New-DynamicDistributionGroup -Name DDG -Alias DDGAlias -OrganizationalUnit OU -IncludedRecipients MailboxUsers
___________________________________________________________________________________________________
6.The following command creates a move request for the mailbox associated with the aliasuser1 to the mailbox database named Executives:
Комментарии
Отправить комментарий