Wednesday 9 September 2015

Remove User in Office 365

In this Article, we will cover how to remove users using PowerShell in Office 365. Users can be removed using Office 365 Admin Center as well.

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 

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

To Remove a User,

Remove-MsolUser –UserPrincipalName JohnSmith@contoso.com

This will prompt to remove any licenses that are assigned to the user. Once the account is removed, the user account is recoverable within 30 days from recycle bin

To Remove a User from Recycle Bin i.e. permanently delete

Remove-MsolUser –UserPrincipalName JohnSmith@contoso.com -RemoveFromRecycleBin

4 comments:

  1. Did you hear there is a 12 word sentence you can say to your crush... that will trigger deep emotions of love and instinctual attractiveness for you buried within his chest?

    That's because hidden in these 12 words is a "secret signal" that triggers a man's instinct to love, please and look after you with all his heart...

    12 Words That Fuel A Man's Desire Response

    This instinct is so built-in to a man's genetics that it will drive him to work harder than ever before to do his best at looking after your relationship.

    In fact, triggering this dominant instinct is absolutely essential to having the best possible relationship with your man that as soon as you send your man one of the "Secret Signals"...

    ...You will instantly find him open his soul and heart for you in a way he never experienced before and he'll see you as the one and only woman in the world who has ever truly tempted him.

    ReplyDelete
  2. Did you realize there's a 12 word phrase you can say to your partner... that will trigger intense emotions of love and instinctual appeal to you deep within his chest?

    Because hidden in these 12 words is a "secret signal" that fuels a man's instinct to love, treasure and look after you with all his heart...

    12 Words That Fuel A Man's Love Impulse

    This instinct is so built-in to a man's mind that it will drive him to work harder than ever before to make your relationship the best part of both of your lives.

    Matter of fact, fueling this dominant instinct is absolutely important to having the best ever relationship with your man that the second you send your man one of these "Secret Signals"...

    ...You will instantly find him open his mind and soul to you in such a way he haven't expressed before and he'll recognize you as the only woman in the universe who has ever truly understood him.

    ReplyDelete
  3. Do this hack to drop 2 lbs of fat in 8 hours

    Well over 160 thousand women and men are trying a simple and SECRET "water hack" to drop 1-2 lbs every night in their sleep.

    It is very easy and it works with anybody.

    Here's how to do it yourself:

    1) Go get a glass and fill it with water half full

    2) And then learn this strange HACK

    and you'll be 1-2 lbs skinnier the very next day!

    ReplyDelete
  4. Did you hear there's a 12 word sentence you can tell your crush... that will induce deep feelings of love and instinctual attraction to you deep inside his heart?

    Because deep inside these 12 words is a "secret signal" that fuels a man's instinct to love, treasure and care for you with all his heart...

    ===> 12 Words Will Fuel A Man's Love Response

    This instinct is so built-in to a man's mind that it will drive him to work better than ever before to to be the best lover he can be.

    Matter-of-fact, fueling this influential instinct is absolutely binding to having the best ever relationship with your man that the moment you send your man one of these "Secret Signals"...

    ...You will immediately notice him expose his mind and soul for you in a way he's never experienced before and he will perceive you as the one and only woman in the galaxy who has ever truly attracted him.

    ReplyDelete