Home » Microsoft » 70-687 » Which cmdlet should you run on the remote computers?
You administer Windows 8.1 computers in your company network.
You need to configure remote computers to receive Windows Remote Shell commands.
Which cmdlet should you run on the remote computers?
A. Enable-PSRemoting
B. Set-PSSessionConfiguration
C. New-PSSession
D. Set-NetConnectionProfile
Correct Answer: A
Explanation/Reference:
The Enable-PSRemotingcmdlet configures the computer to receive Windows PowerShell remote commands that are sent by using the WS-Management technology.
http://technet.microsoft.com/en-us/library/hh849694.aspx
Enable-PSRemoting
The Enable-PSRemoting cmdlet configures the computer to receive Windows PowerShell remote commands that are sent by using the WS- Management technology.
On Windows Server® 2012, Windows PowerShell remoting is enabled by default. You can use Enable-PSRemoting to enable Windows PowerShell remoting on other supported versions of Windows and to re-enable remoting on Windows Server 2012 if it becomes disabled.
You need to run this command only once on each computer that will receive commands. You do not need to run it on computers that only send commands. Because the configuration activates listeners, it is prudent to run it only where it is needed.
Further Information:
http://technet.microsoft.com/en-us/library/hh849726.aspx
Set-PSSessionConfiguration
The Set-PSSessionConfiguration cmdlet changes the properties of the session configurations on the local computer.
http://technet.microsoft.com/en-us/library/hh849717.aspx
New-PSSession
The New-PSSession cmdlet creates a Windows PowerShell session (PSSession) on a local or remote computer. When you create a PSSession, Windows PowerShell establishes a persistent connection to the remote computer.
http://technet.microsoft.com/en-us/library/jj899565.aspx
Set-NetConnectionProfile
The Set-NetConnectionProfile cmdlet changes the network category setting of a connection profile. A connection profile represents a network connection.