Create and Manage Groups, Restore groups with CLI – Office 365 skills

Back to Page 1

Create and Manage Groups, Restore groups with CLI


Objectives

After completing this lab, you will be able to:

  • Manage Office 365 users and licenses by using the Office 365 admin center

Note: The lab steps for this course change frequently due to updates to Office 365. Microsoft Learning updates the lab steps frequently, so they are not available in this manual.

Note: Do not install Office 365 Products in your personal machine. Please use the lab machines instead

Lab setup

www.practice-labs.com

Virtual machines: PLABDC01 and PLABWIN10

User Name: Administrator

Password: Passw0rd

Note: You will be using your Office 365 Trial Account that you created by following our lab guide. If you do not have your trial account, kindly get the lab guide and have one.

This course uses the Office 365 Admin center for all labs.

In all tasks:

  • Login to the office 365 portal using the account that you have created from the previous guide

This lab requires the following virtual machines (use only the VMs required for your lab):

  • PLABDC01
    • Sign in as Administrator by using the password Passw0rd

  • PLABWIN101
    • Sign in as Administrator by using the password Passw0rd

  1. We will join Office 365 Domain from our PLABWIN101 machine
  2. Open Microsoft Edge, and then browse to https://portal.office.com/.

  1. Sign in using your trial account, that you created by following our lab guide

  1. On the Office 365 portal, select Admin.

  1. Select Active teams & groups

  1. Select add a group and select Group type Microsoft 365 (recommended) click next

  1. Fill up the basic details and description

  1. Click on Assign Owners and Select Admin Account (You can select multiple owners at a time)

  1. Click to next after assigning owners of this group

  1. Click on add members, select the user accounts then press add button to proceed

  1. Group email address will work as broadcast email address for added members

  1. Review your settings and finish adding group

  1. Click close and verify groups

  1. If your delete this group and some how want to recover so here is the CLI commands that helps to recover Office 365 Groups

  1. Click refresh to verify Group status

  1. Launch Windows PowerShell (Admin)

  1. Click on Yes

  1. Run this command to enable management of Office 365 from Local Machine Install-Module MSOnline for verification run Install-Module AzureADPreview

Note: Be sure to run these two commands mentioned in step “18” before moving to step “19” otherwise PowerShell will not get connected with your Office 365 domain

  1. Run Connect-AzureAD Command to connect to Office 365

Note: You will be using your Office 365 Trial Account that you created by following our lab guide. If you do not have your trial account, kindly get the lab guide and have one

  1. Run this Command to get deleted group object ID Get-AzureADMSDeletedGroup

  1. Copy this Object ID in Notepad

  1. Replace the {Object ID} Restore-AzureADMSDeletedDirectoryObject -Id {objectId} part with this copied ID and get back the deleted group

  1. Group Restored Verify it from the Office 365 portal as well

 

 

February 4, 2022

0 responses on "Create and Manage Groups, Restore groups with CLI - Office 365 skills"

    Leave a Message