Start free

Browse › Microsoft 365 User Control

Can You Manage Users in Microsoft 365 by Using Windows PowerShell?

Advanced

Part of Microsoft 365 User Control Topic: General Cyber Security

Access

StationX Infrastructure Labs — 3 attempts per lab

🔒 Add StationX Infrastructure Labs — $149 / year · 3 attempts per lab

Already have access? Sign in.

New to this? Try a free practice lab — a scripted hacking challenge in your browser, no account needed.

What you'll do

In this lab, you will manage users, groups, and administrative units In Microsoft 365 using Windows PowerShell.

  1. Use PowerShell to create a new administrative unit
  2. Use PowerShell to add a new group
  3. Create two new users via PowerShell
  4. Assign licenses to each user
  5. Use PowerShell to add one user to a group and the other to an administrative unit
  6. Use PowerShell to assign roles
  7. Use PowerShell to block the second user from logging in
  8. Create two new users and assign licenses via a small PowerShell script

Note: Once you begin the lab, you will not be able to pause, save, or return to your lab. Please ensure that you have set aside enough time to complete the lab before you start.