Challenge - 5 Problems
PowerShell Remote Session Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of this Enter-PSSession command?
You run the following command in PowerShell on your local machine to connect to a remote computer named Server01. What will be the output?
PowerShell
Enter-PSSession -ComputerName Server01
Attempts:
2 left
💡 Hint
Think about what Enter-PSSession does when connecting to a remote computer.
✗ Incorrect
Enter-PSSession starts an interactive remote session with the specified computer, changing the prompt to indicate the remote machine.
🧠 Conceptual
intermediate1:30remaining
Which parameter is required to specify the remote computer in Enter-PSSession?
You want to start a remote session using Enter-PSSession. Which parameter do you use to specify the target computer?
Attempts:
2 left
💡 Hint
This parameter tells PowerShell which computer to connect to.
✗ Incorrect
The -ComputerName parameter specifies the remote computer to connect to in Enter-PSSession.
🔧 Debug
advanced2:30remaining
Why does this Enter-PSSession command fail with 'Access is denied'?
You run: Enter-PSSession -ComputerName Server02 -Credential (Get-Credential)
But you get an error: 'Access is denied'. What is the most likely cause?
PowerShell
Enter-PSSession -ComputerName Server02 -Credential (Get-Credential)
Attempts:
2 left
💡 Hint
Think about user permissions and remote access rights.
✗ Incorrect
Access is denied usually means the credentials used do not have permission to start a remote session on the target computer.
🚀 Application
advanced2:00remaining
How to run a command on a remote computer without entering an interactive session?
You want to run a single command on a remote computer named Server03 without starting an interactive session. Which command should you use?
Attempts:
2 left
💡 Hint
Enter-PSSession is for interactive sessions; what cmdlet runs commands remotely without interaction?
✗ Incorrect
Invoke-Command runs commands on remote computers without opening an interactive session.
💻 Command Output
expert2:00remaining
What happens if you run Enter-PSSession with an invalid computer name?
You run: Enter-PSSession -ComputerName InvalidHost
What is the expected output?
PowerShell
Enter-PSSession -ComputerName InvalidHost
Attempts:
2 left
💡 Hint
Think about what happens when you try to connect to a computer that does not exist or cannot be found.
✗ Incorrect
PowerShell will throw an error indicating it cannot find or connect to the specified computer name.