Complete the code to enable PowerShell remoting on the local computer.
Enable-PSRemoting -[1]The -Force parameter runs the command without asking for confirmation, enabling remoting immediately.
Complete the code to check the status of the WinRM service.
Get-Service -Name [1]The WinRM service is responsible for PowerShell remoting. Checking its status helps verify if remoting is enabled.
Fix the error in the command to enable remoting without confirmation prompts.
Enable-PSRemoting -[1]The correct parameter to suppress confirmation prompts is -Force. Other options are invalid and cause errors.
Fill both blanks to create a firewall rule that allows PowerShell remoting.
New-NetFirewallRule -Name 'PSRemoting' -DisplayName 'PowerShell Remoting' -[1] TCP -LocalPort [2] -Action Allow
The -Protocol parameter specifies the protocol type, which is TCP for PowerShell remoting. The -LocalPort should be set to 5985, the default WinRM port.
Fill all three blanks to create a session to a remote computer named 'Server01'.
$session = New-PSSession -ComputerName [1] -Credential [2] -Authentication [3]
Server01 is the remote computer name. Get-Credential prompts for user credentials. Default is the common authentication method for remoting.