Challenge - 5 Problems
PowerShell Remoting Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of enabling PowerShell remoting on a fresh Windows machine?
You run the command
Enable-PSRemoting -Force on a Windows machine that has never had remoting enabled before. What is the expected output?PowerShell
Enable-PSRemoting -Force
Attempts:
2 left
💡 Hint
Think about what Enable-PSRemoting does when run with -Force on a fresh system.
✗ Incorrect
Enable-PSRemoting -Force starts the WinRM service, sets it to automatic, and enables firewall rules. It outputs a confirmation message that WinRM has been updated to receive requests.
🧠 Conceptual
intermediate1:30remaining
Which firewall rules does Enable-PSRemoting enable by default?
When you run
Enable-PSRemoting, which firewall rules are enabled to allow remote PowerShell sessions?Attempts:
2 left
💡 Hint
WinRM uses specific ports for remoting.
✗ Incorrect
Enable-PSRemoting enables firewall rules for WS-Management, which uses ports 5985 for HTTP and 5986 for HTTPS to allow remote PowerShell sessions.
🔧 Debug
advanced2:00remaining
Why does this Enable-PSRemoting command fail with an access denied error?
You run
Enable-PSRemoting -Force in a PowerShell window but get an "Access Denied" error. What is the most likely cause?Attempts:
2 left
💡 Hint
Think about what permissions are needed to change system services and firewall rules.
✗ Incorrect
Enable-PSRemoting requires administrator privileges because it starts services and modifies firewall rules. Running without admin rights causes access denied errors.
🚀 Application
advanced2:00remaining
How to enable PowerShell remoting only for the current user?
You want to enable PowerShell remoting but only for your current user account, not system-wide. Which command achieves this?
Attempts:
2 left
💡 Hint
Check the official parameters of Enable-PSRemoting.
✗ Incorrect
Enable-PSRemoting does not support enabling remoting scoped to a single user. It configures system-wide settings.
💻 Command Output
expert2:00remaining
What is the output of running Enable-PSRemoting on a machine where remoting is already enabled?
You run
Enable-PSRemoting -Force on a machine where remoting was enabled previously and no changes are needed. What output do you get?PowerShell
Enable-PSRemoting -Force
Attempts:
2 left
💡 Hint
Think about idempotent commands and their output.
✗ Incorrect
When remoting is already enabled, Enable-PSRemoting outputs a message stating WinRM is already set up to receive requests.