0
0
PowerShellscripting~20 mins

PowerShell Remoting (Enable-PSRemoting) - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
PowerShell Remoting Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2: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
AWinRM service is started and set to automatic. Firewall rules for WS-Management are enabled. Output: "WinRM has been updated to receive requests."
BWinRM service is started and set to automatic. Firewall rules for WS-Management are enabled. Output: "WinRM is already set up to receive requests."
CError: "Access Denied" because administrator privileges are required.
DNo output and no changes because remoting is disabled by default and must be enabled in Group Policy.
Attempts:
2 left
💡 Hint
Think about what Enable-PSRemoting does when run with -Force on a fresh system.
🧠 Conceptual
intermediate
1: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?
ARules for WS-Management (WinRM) inbound traffic on ports 5985 (HTTP) and 5986 (HTTPS).
BRules for HTTP (port 80) and HTTPS (port 443) inbound traffic.
CRules for SMB (port 445) inbound traffic.
DRules for RDP (port 3389) inbound traffic.
Attempts:
2 left
💡 Hint
WinRM uses specific ports for remoting.
🔧 Debug
advanced
2: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?
AThe WinRM service is already running and cannot be restarted.
BYou are running PowerShell without administrator privileges.
CThe firewall is blocking outbound traffic.
DPowerShell remoting is disabled in Group Policy and cannot be enabled manually.
Attempts:
2 left
💡 Hint
Think about what permissions are needed to change system services and firewall rules.
🚀 Application
advanced
2: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?
AEnable-PSRemoting -Force -Scope CurrentUser
BEnable-PSRemoting -Force -SessionOption CurrentUser
CEnable-PSRemoting -Force (no parameter supports user-only scope)
DEnable-PSRemoting -Force -UserScope
Attempts:
2 left
💡 Hint
Check the official parameters of Enable-PSRemoting.
💻 Command Output
expert
2: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
ANo output, command runs silently.
B"WinRM has been updated to receive requests."
CError: "Remoting already enabled, cannot run Enable-PSRemoting again."
D"WinRM is already set up to receive requests on this machine."
Attempts:
2 left
💡 Hint
Think about idempotent commands and their output.