Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Invoke-WSManAction

Invoke-WSManAction - 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
Invokes an action on the object that is specified by the Resource URI and by the selectors.

Invoke-WSManAction [-ResourceURI] <Uri> [-Action] <String> [[-SelectorSet] <Hashtable>] [-Authentication <Authenticatio
nMechanism>] [-CertificateThumbprint <String>] [-ConnectionURI <Uri>] [-Credential <PSCredential>] [-FilePath <String>]
 [-OptionSet <Hashtable>] [-SessionOption <SessionOption>] [-ValueSet <Hashtable>] [<CommonParameters>]
Invoke-WSManAction [-ResourceURI] <Uri> [-Action] <String> [[-SelectorSet] <Hashtable>] [-ApplicationName <String>] [-A
uthentication <AuthenticationMechanism>] [-CertificateThumbprint <String>] [-ComputerName <String>] [-Credential <PSCre
dential>] [-FilePath <String>] [-OptionSet <Hashtable>] [-Port <Int32>] [-SessionOption <SessionOption>] [-UseSSL [<Swi
tchParameter>]] [-ValueSet <Hashtable>] [<CommonParameters>]

The Invoke-WSManAction runs an action on the object that is specified by RESOURCE_URI, where parameters are specified b
y key value pairs.

This cmdlet uses the WSMan connection/transport layer to run the action.