Bird
0
0

What is the result of executing the following command on a Windows 10 system without the Active Directory module installed?

medium📝 Command Output Q5 of 15
PowerShell - Active Directory
What is the result of executing the following command on a Windows 10 system without the Active Directory module installed?
Get-Module ActiveDirectory -ListAvailable
ANo output is returned because the module is not found
BThe module is imported successfully
CAn error message stating the module is corrupted
DThe command installs the module automatically
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command

    Get-Module -ListAvailable lists modules installed but not necessarily imported.
  2. Step 2: Check module presence

    If the Active Directory module is not installed, it will not appear in the list.
  3. Final Answer:

    No output is returned because the module is not found -> Option A
  4. Quick Check:

    Command lists available modules only [OK]
Quick Trick: Get-Module -ListAvailable shows installed modules only [OK]
Common Mistakes:
  • Assuming the module imports automatically
  • Expecting an error instead of no output
  • Confusing import with installation

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes