Pages

Wednesday, 9 September 2015

Restore User in Office 365

In this Article, we will cover how to restore a user  using PowerShell in Office 365. 

In order to use the following command lets , the pre-requisite is to Install Windows Azure for Active Directory PowerShell, please refer to Microsoft TechNet Article.

Launch the Windows Azure for Active Directory Shortcut

Connect to Office 365 using the following command , and enter your credentials

Connect-msolservice 

When a user is removed, it goes into Recycle Bin where it's available for 30 days and is recoverable within 30 days from the time of deletion.

Once you are connected, you can use the following command to restore a user

To Get a list of removed users,

Get-MsolUser–returndeletedusers

To Restore a User,

Restore-MsolUser –UserPrincipalName JohnSmith@contoso.com

2 comments:

  1. Great article created by you. I get very useful information while reading your blog. You have done a great work. Super blogging and keep it up.

    ReplyDelete
  2. Listen...

    This may sound really creepy, and maybe even kind of "supernatural"

    WHAT if you could just press "Play" to LISTEN to a short, "magical tone"...

    And suddenly attract MORE MONEY into your LIFE??

    I'm talking about thousands... even MILLIONS of DOLLARS!!!

    Sound too EASY?? Think it's IMPOSSIBLE?!?

    Well, Let me tell you the news..

    Usually the greatest blessings in life are the SIMPLEST!!!

    In fact, I'm going to PROVE it to you by letting you listen to a REAL "miracle wealth building tone" I've produced...

    YOU just push "Play" and the money will start coming into your life. it starts right away.

    GO here NOW to play the magical "Miracle Abundance Tone" as my gift to you!!!

    ReplyDelete