0
0
PowerShellscripting~5 mins

Enter-PSSession in PowerShell - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the <code>Enter-PSSession</code> cmdlet do in PowerShell?
It starts an interactive session with a remote computer, allowing you to run commands directly on that remote machine as if you were logged in locally.
Click to reveal answer
beginner
How do you specify the remote computer name when using Enter-PSSession?
You use the -ComputerName parameter followed by the remote computer's name or IP address.
Click to reveal answer
intermediate
What is the difference between Enter-PSSession and Invoke-Command?
Enter-PSSession creates an interactive session on one remote computer. Invoke-Command runs commands on one or many remote computers without an interactive session.
Click to reveal answer
beginner
How do you exit an interactive remote session started with Enter-PSSession?
You type Exit-PSSession or simply exit to end the remote session and return to your local PowerShell prompt.
Click to reveal answer
intermediate
What must be enabled on the remote computer to use Enter-PSSession successfully?
PowerShell Remoting must be enabled on the remote computer, usually by running Enable-PSRemoting with administrator rights.
Click to reveal answer
Which parameter is used with Enter-PSSession to specify the remote computer?
A-ConnectTo
B-ComputerName
C-RemoteHost
D-SessionName
What command ends an interactive remote session started with Enter-PSSession?
AExit-PSSession
BStop-Session
CDisconnect-Session
DEnd-Remote
Which of these is true about Enter-PSSession?
AIt creates an interactive session with one remote computer.
BIt runs commands on multiple remote computers at once.
CIt copies files to a remote computer.
DIt disables PowerShell remoting.
Before using Enter-PSSession, what must be enabled on the remote computer?
AFile Sharing
BRemote Desktop
CPowerShell Remoting
DWindows Firewall
Which command would you use to enable PowerShell Remoting on a remote computer?
AEnable-RemoteAccess
BStart-RemoteSession
CSet-RemoteConnection
DEnable-PSRemoting
Explain how to start and end an interactive remote session using Enter-PSSession.
Think about connecting and disconnecting like a phone call.
You got /3 concepts.
    Describe the setup requirements on the remote computer to use Enter-PSSession successfully.
    Consider what allows your computer to accept remote commands.
    You got /3 concepts.