PowerShell - System AdministrationWhich of the following is the correct syntax to check if the 'Telnet-Client' feature is installed?AGet-WindowsFeature Telnet-Client | Where Installed -eq $trueBGet-WindowsFeature -Name Telnet-Client | Select-Object InstalledCGet-WindowsFeature -Name Telnet-Client | Select-Object -InstalledDGet-WindowsFeature -FeatureName Telnet-Client | Show InstalledCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify correct cmdlet usageThe correct syntax uses Get-WindowsFeature with -Name parameter and pipes to Select-Object Installed property.Step 2: Eliminate incorrect syntaxOptions B, C misuse Select or Where syntax; D uses invalid parameter Show Installed.Final Answer:Get-WindowsFeature -Name Telnet-Client | Select-Object Installed -> Option BQuick Check:Correct syntax to check feature status = Get-WindowsFeature -Name Telnet-Client | Select-Object Installed [OK]Quick Trick: Use Select-Object Installed to see feature status [OK]Common Mistakes:Using Select-Object with invalid parameters like -InstalledIncorrect parameter names like -FeatureNameTrying to filter with Where without proper syntax
Master "System Administration" in PowerShell9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More PowerShell Quizzes Automation Patterns - Log cleanup automation - Quiz 3easy Cross-Platform PowerShell - Why cross-platform extends reach - Quiz 10hard Cross-Platform PowerShell - PowerShell on Linux - Quiz 1easy Remote Management - Why remote execution scales management - Quiz 2easy Remote Management - PowerShell Remoting (Enable-PSRemoting) - Quiz 2easy Scripting Best Practices - Parameter validation - Quiz 8hard Scripting Best Practices - Verbose and debug output - Quiz 4medium Scripting Best Practices - Verbose and debug output - Quiz 15hard Scripting Best Practices - Script block logging - Quiz 15hard Scripting Best Practices - Parameter validation - Quiz 4medium