Challenge - 5 Problems
Windows Features Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Check the output of listing Windows features
What is the output of this PowerShell command when run on a Windows machine with IIS installed?
Get-WindowsFeature -Name Web-Server | Select-Object Name, InstallState
PowerShell
Get-WindowsFeature -Name Web-Server | Select-Object Name, InstallState
Attempts:
2 left
💡 Hint
Think about what 'InstallState' shows when a feature is installed.
✗ Incorrect
The 'Get-WindowsFeature' cmdlet shows the status of Windows features. When IIS (Web-Server) is installed, its InstallState is 'Installed'.
📝 Syntax
intermediate2:00remaining
Identify the correct syntax to install a Windows feature
Which PowerShell command correctly installs the Windows feature 'Telnet-Client'?
Attempts:
2 left
💡 Hint
Check the official parameter name for specifying the feature.
✗ Incorrect
The correct cmdlet is 'Install-WindowsFeature' with the parameter '-Name' to specify the feature to install.
🔧 Debug
advanced2:00remaining
Find the error in this feature removal script
This script is intended to remove the 'Telnet-Client' feature but fails with an error. What is the cause?
Remove-WindowsFeature Telnet-Client
PowerShell
Remove-WindowsFeature Telnet-Client
Attempts:
2 left
💡 Hint
Check the official cmdlet names for removing Windows features.
✗ Incorrect
'Remove-WindowsFeature' is not a valid cmdlet. The correct cmdlet to remove a feature is 'Uninstall-WindowsFeature'.
🚀 Application
advanced3:00remaining
Script to check and install a feature if missing
You want a PowerShell script that checks if the 'Web-Server' feature is installed, and if not, installs it silently. Which script achieves this?
Attempts:
2 left
💡 Hint
Check the InstallState property and the parameters for silent install without restart.
✗ Incorrect
Option A correctly checks if the feature is not installed and installs it with management tools without forcing a restart.
🧠 Conceptual
expert3:00remaining
Understanding feature states and their meanings
Which of the following correctly describes the meaning of the 'InstallState' values returned by 'Get-WindowsFeature'?
Attempts:
2 left
💡 Hint
Think about which states allow installation and which block it.
✗ Incorrect
'Installed' means the feature is active. 'Available' means it can be installed. 'Removed' means it is not installed but can be installed. 'Disabled' means it is blocked from installation.