Unable to Migrate User to O365 – “Target user already has a primary mailbox”

If you run into an issue where a user has both a mailbox in Exchange on-premise and O365, and you cannot migrate the account to O365. Error: “Target user already has a primary mailbox” FIX: Remove the O365 account and then do a full DirSync.  Once done, migrate the on-prem mailbox to O365. Open PowerShell in Connect-MSOLService -Credential $adminCredential   (enter […]

Read more

Delete emails from specific sender in one users mailbox

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    Run this command in Powershell   Search-Mailbox -identity “User Mailbox” -SearchQuery “From:user@domain.com” -deletecontent 

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 ada credentials with username of <username>@domain.com Type in your ada credentials with username of domain\<username>   Run this command: you will need the distribution group name […]

Read more

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

Configure a multiscope DHCP server to work with VLANs on Windows Server 2012

In order to take advantage of the full capabilities of LAN segmentation (VLAN), you need to properly configure a DHCP server with different scopes (multiscope setup). Windows Server offers a simple solution to the problem and we are going to see how to perform the operation. The first step is to install the DHCP server role: Then open the DHCP […]

Read more
1 23 24 25 26 27 71