Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Connect-WSMan

Connect-WSMan - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Connects to the WinRM service on a remote computer.

Connect-WSMan [[-ComputerName] <String>] [-ApplicationName <String>] [-Authentication <AuthenticationMechanism>] [-Cert
ificateThumbprint <String>] [-Credential <PSCredential>] [-OptionSet <Hashtable>] [-Port <Int32>] [-SessionOption <Sess
ionOption>] [-UseSSL [<SwitchParameter>]] [<CommonParameters>]
Connect-WSMan [-Authentication <AuthenticationMechanism>] [-CertificateThumbprint <String>] [-ConnectionURI <Uri>] [-Cr
edential <PSCredential>] [-OptionSet <Hashtable>] [-Port <Int32>] [-SessionOption <SessionOption>] [<CommonParameters>]

The Connect-WSMan cmdlet connects to the WinRM service on a remote computer, and it establishes a persistent connection
 to the remote computer. You can use this cmdlet within the context of the WSMan provider to connect to the WinRM servi
ce on a remote computer. However, you can also use this cmdlet to connect to the WinRM service on a remote computer bef
ore you change to the WSMan provider. The remote computer will appear in the root directory of the WSMan provider.

Note: Explicit credentials are required when the client and server computers are in different domains or workgroups.

For information about how to disconnect from the WinRM service on a remote computer, see Disconnect-WSMan.