Bird
0
0

Which of the following is the correct syntax to check if the 'Telnet-Client' feature is installed?

easy📝 Syntax Q3 of 15
PowerShell - System Administration
Which of the following is the correct syntax to check if the 'Telnet-Client' feature is installed?
AGet-WindowsFeature Telnet-Client | Where Installed -eq $true
BGet-WindowsFeature -Name Telnet-Client | Select-Object Installed
CGet-WindowsFeature -Name Telnet-Client | Select-Object -Installed
DGet-WindowsFeature -FeatureName Telnet-Client | Show Installed
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct cmdlet usage

    The correct syntax uses Get-WindowsFeature with -Name parameter and pipes to Select-Object Installed property.
  2. Step 2: Eliminate incorrect syntax

    Options B, C misuse Select or Where syntax; D uses invalid parameter Show Installed.
  3. Final Answer:

    Get-WindowsFeature -Name Telnet-Client | Select-Object Installed -> Option B
  4. Quick 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 -Installed
  • Incorrect parameter names like -FeatureName
  • Trying to filter with Where without proper syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes