Hands-On Exercise 1
Hands-on exercise on creating and modifying users in Active Directory with PowerShell.
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:
- Create a new user account in Active Directory.
- List and retrieve information about user accounts.
- Modify the properties of a user account.
- 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
Open PowerShell with administrative rights.
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