Showing posts with label O365. Show all posts
Showing posts with label O365. Show all posts

Friday 18 October 2019

How to bulk update user's manager from import CSV in O365?


Or, updating the bulk user's manager in O365 using CSV file

Steps/Prerequisites:
- Make sure you are corrected with O365 PowerShell session.
- Make sure you have exported Managers list in CSV format using the KB How to export user's managers in O365?

To update the user’s manager execute the below commands:

--------------------------------------------------------------------------------------------------------
$users = Import-Csv -Path "C:\manager.csv"
foreach($i in $users)
{
Set-User -Identity $i.UserprincipalName -Manager $i.Manager
}
---------------------------------------------------------------------------------------------------------

Note: Choose your correct file name and file path in the above-given command

Cheers, please write me back if you have any query or feedback.

How to export user's managers in O365?


Or, PowerShell command to export mailbox's managers in CSV format in O365

You can use the following command to export the user name along with the assigned manager details in .csv format.
------------------------------------------------------------------------------------------------
Get-user | select displayname, *manager* | Export-Csv -Path c:\managers.csv
-----------------------------------------------------------------------------------------------

Note: Please make sure you are connected to the O365 PowerShell session.

Cheers, please write me back if you have any query or feedback.

Monday 24 December 2018

How to perform move request for an O365 mailbox?

Or, Performing move request for O365 based mailbox
Or, Moving mailbox to another datastore or database in online exchange O365
Or, How to change datastore or database of O365 mailbox?

Description: There are real situations where you face unexpected issues with some of the mailboxes, and observe unusual behavior while sending or receiving emails, using features of our email client, functionalities challenges, slowness etc… If you have already tried many the troubleshooting steps, and nothing has helped, its time for you to try the MoveRequest now to see if that helps.

This method will move your affected user’s mailbox from exiting to new datastore or database, and that helps in fixing such unusual problems if the problem is from the online exchange server side of Microsoft O365.

In my case, it has been one of the best approaches to handle such an issue.

Step-1: Logn to MS O365 Azure Powershell
Launch Microsoft Azure Active Directory – Windows PowerShell > run the following commands in sequence to login to your O365 tenant > Feed in your O365 admin credentials wherever prompted
-----------------------------------------------------------------------------------------------------------------------
1)      $LiveCred=Get-Credential
2)      $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic –AllowRedirectio
3)      Import-PSSession $Session
-----------------------------------------------------------------------------------------------------------------------

Reference Screenshot:









Step-2: Run MoveRequest
Run the command given below for the selected user to initiate move request
-----------------------------------------------------------------------------------------------------------------------
New-MoveRequest admin@techiessphere.com
-----------------------------------------------------------------------------------------------------------------------
You can replace admin@techiesspehere in the above command, with the affected user’s email address of yours

Reference Screenshot:





Optional: Check the progress of MoveRequest
Run the following command to check the percentage completion of the MoveRequest
-----------------------------------------------------------------------------------------------------------------------
Get-MoveRequestStatistics -Identity admin@techiessphere.com
-----------------------------------------------------------------------------------------------------------------------
You can replace admin@techiesspehere in the above command, with the affected user’s email address of yours

Reference Screenshot:






Cheers, please write me back if you have any query or feedback.

Friday 21 December 2018

Diagnostic information for administrators: #550 5.1.1 RESOLVER.ADR.ExRecipNotFound; not found

Or, Diagnostic information for administrators: #550 5.1.1 RESOLVER.ADR.ExRecipNotFound; not found ##

NDR Error: Delivery has failed to these recipients or distribution lists
The recipient's e-mail address was not found in the recipient's e-mail system. Microsoft Exchange will not try to redeliver this message for you. Please check the e-mail address and try resending this message, or provide the following diagnostic text to your system administrator.

Possible Reason 1: - The user does not exist

Resolution: - Please check if the user email ID your typing is correct or not. Generally, this happens, if the user mailbox has been deleted or you are typing a wrong email ID

Possible Reason 2: - The user which have been deleted from your AD/Exchange, may still exist/added in some Transport Rules.

Resolution: - Please check all your Transport rules and delete the user email address from any transport rules that you have created under EMC > Organization Configuration > Hub Transport> Transport Rule


Cheers, please write me back if you have any query or feedback on this.