Challenge - 5 Problems
AD Module Installation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
What is the output of importing the Active Directory module?
You run the command
Import-Module ActiveDirectory in PowerShell on a Windows Server with the AD module installed. What is the expected output?PowerShell
Import-Module ActiveDirectory
Attempts:
2 left
💡 Hint
Importing a module usually does not show output unless there is an error.
✗ Incorrect
When you import the Active Directory module successfully, PowerShell does not display any output. It silently loads the module so you can use its cmdlets.
💻 Command Output
intermediate1:30remaining
What happens if you try to install the AD module on Windows 10 using PowerShell?
You run
Install-WindowsFeature RSAT-AD-PowerShell on Windows 10. What is the expected result?PowerShell
Install-WindowsFeature RSAT-AD-PowerShell
Attempts:
2 left
💡 Hint
Install-WindowsFeature is a Server-specific cmdlet.
✗ Incorrect
The Install-WindowsFeature cmdlet is only available on Windows Server. On Windows 10, this command is not recognized and will cause an error.
📝 Syntax
advanced2:00remaining
Which command correctly installs the AD module on Windows Server 2022?
Select the correct PowerShell command to install the Active Directory module on Windows Server 2022.
Attempts:
2 left
💡 Hint
On Windows Server, the cmdlet to install roles and features is Install-WindowsFeature.
✗ Incorrect
The correct command to install the AD module on Windows Server 2022 is 'Install-WindowsFeature -Name RSAT-AD-PowerShell'. The other commands are either for different OS or incorrect.
🔧 Debug
advanced2:00remaining
Why does this command fail to import the AD module?
You run
Import-Module ActiveDirectory but get the error: ModuleNotFoundException: Module 'ActiveDirectory' not found. What is the most likely cause?PowerShell
Import-Module ActiveDirectory
Attempts:
2 left
💡 Hint
Check if the module is installed before importing.
✗ Incorrect
The error means PowerShell cannot find the module. The most common reason is that the AD module is not installed on the machine.
🚀 Application
expert2:30remaining
How to verify if the AD module is installed and available in PowerShell?
You want to check if the Active Directory module is installed and ready to use in your PowerShell session. Which command will give you a list of available modules including AD?
Attempts:
2 left
💡 Hint
You want to see modules installed on your system, not just imported.
✗ Incorrect
Get-Module -ListAvailable lists all modules installed on the system. Filtering by name 'ActiveDirectory' shows if the AD module is installed and available.