Показаны сообщения с ярлыком Exchange 2016. Показать все сообщения
Показаны сообщения с ярлыком Exchange 2016. Показать все сообщения

вторник, 10 января 2017 г.

Set Time Zone for the mailbox with Powershell

Open Powershell As Administrator and connect to Office365  

Set Time Zone for a Mailbox:


Set-MailboxRegionalConfiguration <Identity> -TimeZone <"Time Zone"> 

Example:

Set-MailboxRegionalConfiguration yourmailbox -TimeZone "Pacific Standard Time" 


Set Time Zone + Language for a Mailbox:


Set-MailboxRegionalConfiguration <Identity> -TimeZone <"Time Zone"> Language <Language Code> 

Example:

Set-MailboxRegionalConfiguration yourmailbox -TimeZone "Pacific Standard Time" Language en-US  


Display information about Time Zone and Language for a specific user:


Get-MailboxRegionalConfiguration <Identity> 

Example:

Get-MailboxRegionalConfiguration yourmailbox

Display Time zone and Language settings for all users:


$Users = Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox')} $Users | Get-MailboxRegionalConfiguration  

понедельник, 9 января 2017 г.

Share meeting room with shared organization


1. $UserCredential = Get-Credential
2.  $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
3.  Import-PSSession $Session
4.  Set-CalendarProcessing –Identity calendar@mydomain.com -ProcessExternalMeetingMessages $true
5.  Enjoy!

Manage Distribution Groups




Create Distribution Group


Syntax:

New-DistributionGroup -Name "<Distribution Group Name>" 
Example:
New-DistributionGroup -Name new-group 



Create Distribution Group with settings:


Syntax:

New-DistributionGroup -Name <DL name> -DisplayName <DL display name> -Alias <Alias> -PrimarySmtpAddress <Email Address>
Example:
New-DistributionGroup -Name new-group -DisplayName new-group -Alias new-group  -PrimarySmtpAddress new-group@mydomain.com




Add Users to Distribution Group:



Syntax:

Add-DistributionGroupMember "new-group" -Member vpupkin -BypassSecurityGroupManagerCheck

Example:

Add-DistributionGroupMember "new-group" -Member vpupkin -BypassSecurityGroupManagerCheck


Set Owner of Dustribution Group:


Syntax:

Set-DistributionGroup -Identity "<Distribution Group Name>" ManagedBy <Identity> -BypassSecurityGroupManagerCheck

Example:

Set-DistributionGroup -Identity new-group ManagedBy vpupkin  -BypassSecurityGroupManagerCheck



Remove Distribution Group:


Syntax:

Remove-DistributionGroup "<Distribution Group Name>"
Example:
Remove-DistributionGroup new-group


Add Email Aliases for Distribution Group:


Syntax:

Set-DistributionGroup "<Distribution Group Name>" -EmailAddresses SMTP:<Primary Email>,<Alias Email>
Example:

Set-DistributionGroup new-group-EmailAddresses SMTP:new-group@mydomain.com,achtung@mydomain.com


Hide Distribution Group from GAL (Global Address List):


Syntax:

Set-DistributionGroup "<Distribution Group Name>" -HiddenFromAddressListsEnabled $True
Example:
Set-DistributionGroup new-group -HiddenFromAddressListsEnabled $True



Get Information about Distribution Group members:



Syntax:

Get-DistributionGroupMember "Group Name>"

Example:

Get-DistributionGroupMember new-group

Get List of Distribution Groups:

Get-DistributionGroup  




Enjoy!

Deleted Exchange Calendar item keeps coming back


  1. Connect to Office365 with Powershell
  2. Disable Callendar Repair Assistant with command:    Set-Mailbox vasya@yourdomain.com -CalendarRepairDisabled $true



The Calendar Repair Assistant performs the following functions:
  • Detects inconsistencies
  • Determines if inconsistencies were intentional
  • Corrects inconsistencies 
  • Sends a calendar repair update message if a correction was made
       3. Search and Delete required meeting in calendars:    Get-Mailbox -ResultSize unlimited | Search-Mailbox -SearchQuery 'from:"vasya@yourdomain.com" AND kind:meetings AND SUBJECT:"Type your subject"' -DeleteContent -Force
       4. Just for case if you are looking for another content removal:

–SearchQuery kind:contacts
–SearchQuery kind:notes
–SearchQuery kind:tasks
–SearchQuery kind:im
–SearchQuery kind:email


      5. Enjoy!

четверг, 14 июля 2016 г.

Exchange Server mailbox permissions with Powershell

Send on Behalf – This will grant testuser user send on behalf permissions for Accounting mailbox:

 Set-Mailbox accounting -GrantSendOnBehalfTo testuser


Send As – This will grant testuser user send as permissions for Accounting mailbox:

Add-ADPermission accounting -ExtendedRights Send-As -user testuser



Full Mailbox Access – This will grant testuser user, full access to Accountng's Mailbox:

Add-MailboxPermission -Identity accounting -User testuser -AccessRights FullAccess -InheritanceType All