0%
Hands-On Exercise 1

Hands-On Exercise 1

Hands-on exercise on creating and modifying users in Active Directory with PowerShell.

10-15 min

Exercise #1 on Managing Active Directory User Accounts with PowerShell

This exercise will guide you step by step through creating, listing, modifying, and deleting user accounts in Active Directory using PowerShell. Each step is explained in detail to make sure you understand every command and can confidently manage users in Active Directory.


Objective

By the end of this exercise, you will be able to:

  1. Create a new user account in Active Directory.
  2. List and retrieve information about user accounts.
  3. Modify the properties of a user account.
  4. Delete a user account safely.

Prerequisites

  • Have access to an Active Directory environment.
  • Be able to run PowerShell as an administrator.
  • Have the necessary permissions to manage users in Active Directory.

Step 1: Create a New User Account

Objective of This Step

You will learn how to create a user account with a secure password, profile information, and immediate account activation.

Action

  1. Open PowerShell with administrative rights.

  2. Define a secure password for the user with the following command:

    # Crée une chaîne de mot de passe sécurisée pour l'utilisateur
    $MDP = ConvertTo-SecureString -AsPlainText "P@$$word" -Force
    
Link copied!