PowerShell - Active DirectoryWhich of the following commands correctly installs the Active Directory module on Windows 10 using PowerShell?AInstall-Module ActiveDirectoryBInstall-WindowsFeature RSAT-AD-PowerShellCEnable-WindowsOptionalFeature -FeatureName RSAT-AD-PowerShell -OnlineDAdd-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0Check Answer
Step-by-Step SolutionSolution:Step 1: Understand Windows 10 AD module installationOn Windows 10, the AD module is part of RSAT features installed via Add-WindowsCapability.Step 2: Identify correct command syntaxThe correct command is Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0.Final Answer:Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0 -> Option DQuick Check:Windows 10 AD install = Add-WindowsCapability with RSAT name [OK]Quick Trick: Use Add-WindowsCapability for RSAT features on Windows 10 [OK]Common Mistakes:Using Install-WindowsFeature on Windows 10 (server-only)Trying Enable-WindowsOptionalFeature with wrong feature nameUsing Install-Module which is for PowerShell Gallery modules
Master "Active Directory" in PowerShell9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More PowerShell Quizzes Active Directory - Organizational unit operations - Quiz 7medium Automation Patterns - Monitoring scripts with email alerts - Quiz 10hard Automation Patterns - Report generation automation - Quiz 6medium Automation Patterns - Configuration drift detection - Quiz 15hard Automation Patterns - Desired State Configuration (DSC) basics - Quiz 12easy Cross-Platform PowerShell - Why cross-platform extends reach - Quiz 3easy Cross-Platform PowerShell - PowerShell on macOS - Quiz 4medium Remote Management - PSSession management - Quiz 8hard Scripting Best Practices - Code signing - Quiz 7medium System Administration - Service management (Get/Start/Stop-Service) - Quiz 2easy