Converting User mailbox to Shared or Room mailbox

Open Exchange Management Shell   Enter the following command: get-mailbox -identity <username or display name> | set-mailbox -type shared  Afer the process completes, the mailbox will show as a share box.   ***To convert shared to a user mailbox enter the following command: Enter the following command: get-mailbox -identity <username or display name> | set-mailbox -type regular    Convert mailbox […]

Read more

Migrate user mailbox from O365 back to Exchange 2010 on-premise

Migrate user mailbox from O365 back to Exchange 2010 on-premise:   Open Windows PowerShell in administrator mode and run:   New-MoveRequest -Identity “Matt Heitman” -Outbound -RemoteTargetDatabase “MBX01-DB3 – High Limits” -RemoteHostName autodiscover.companydomain.com -TargetDeliveryDomain companydomain.com -RemoteCredential (Get-Credential) -BadItemLimit 10   you can add the parameter below if you want to suspend the migration before it is ready to be completed. –SuspendWhenReadyToComplete  […]

Read more

Migrate Exchange on-prem user to O365

Migrate users a. Connect to Exchange On-line From the PowerShell console on an Exchange 2010 server: $Cred = Get-Credential $s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic –AllowRedirection Import-PSSession $s Type in your ada credentials with username of <username>@domain.com Type in your ada credentials with username of domain\<username> b. Run command to migrate user New-MoveRequest –Identity <username […]

Read more

PowerShell – Get a list of my domain Organizational Units

PowerShell – Get a list of my domain Organizational Units Quick post, last week my coworker Andrey needed to list all the Organization Units in the domain by Canonical Name. I thought sharing the PowerShell One-Liner magic could save time to some people out there. In the following examples two methods to retrieve the information using Active Directory and ADSI/NET. Active […]

Read more

Remove All Emails from a specific sender

1.  Connect to Exchange On-line From the PowerShell console on an Exchange 2010 server: $Cred = Get-Credential $s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic –AllowRedirection Import-PSSession $s Type in your ada credentials with username of <username>@domain.com Type in your domain admin credentials with username of domain\<username>   Run this command in Powershell     Search-Mailbox -identity […]

Read more

Active Directory : Create test users using PowerShell

I’ve often had a need for some users for various test purposes, and want a script to quickly create these users. Create Organizatiol Unit (OU) In order to use the cmdlets needed you need Access to a Domain Controller or have RSAT (opens a Google search) installed on your Workstation and use import-module *active* You can skip importing the module if […]

Read more

O365 to Exchange on-prem migration error

When you attempt to migrate an O365 user back to Exchange 2010 on-prem you may receive this error:   “You shouldn’t migrate mailbox ‘Paul Demmer’ to Exchange 2010 or an earlier version while the user’s Instant Messaging contact list is stored in Exchange. If you do, the user could permanently lose access to their Instant Messaging contact list, which will cause […]

Read more

Copy members from one Distribution Group to another Distribution Group in PowerShell

As an Exchange and Active Directory administrator you may be asked at some point to make a new distribution group from one or more other distribution groups. Exchange 2010 and PowerShell make this a very easy task. So to get started log in to your exchange server and open your Exchange Management Console.     Now we need to create the […]

Read more

Unable to Migrate O365 user back to Exchange On-Prem – ERROR: Cannot find a recipient that has mailbox GUID

When you try to migrate an O365 mailbox back to Exchange on-premise, you may run into this error message.                 Below is the solution for it.     SOLUTION Set the ExchangeGUID property on the associated on-premises remote mailbox before you move the mailbox to the on-premises organization. To do this, follow these […]

Read more

Delete specific email from O365 mailboxes

1.  Connect to Exchange On-line From the PowerShell console on an Exchange 2010 server: $Cred = Get-Credential $s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic –AllowRedirection Import-PSSession $s Type in your Domain Admin credentials with username of <username>@domain.com Type in your Domain Admin credentials with username of domain\<username>   Run this command: you will need the distribution […]

Read more
1 6 7 8 9 10 11