This is the built-in help made by Microsoft for the command 'Set-WSManInstance', in PowerShell version 4 - as retrieved from
Windows version 'Microsoft Windows 8.1 Enterprise' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Modifies the management information that is related to a resource.
Set-WSManInstance [-ResourceURI] <Uri> [[-SelectorSet] <Hashtable>] [-ApplicationName <String>] [-Authentication <AuthenticationMechanism>] [-CertificateThumbprint <S
tring>] [-ComputerName <String>] [-Credential <PSCredential>] [-Dialect <Uri>] [-FilePath <String>] [-Fragment <String>] [-OptionSet <Hashtable>] [-Port <Int32>] [-Se
ssionOption <SessionOption>] [-UseSSL] [-ValueSet <Hashtable>] [<CommonParameters>]
Set-WSManInstance [-ResourceURI] <Uri> [[-SelectorSet] <Hashtable>] [-Authentication <AuthenticationMechanism>] [-CertificateThumbprint <String>] [-ConnectionURI <Uri
>] [-Credential <PSCredential>] [-Dialect <Uri>] [-FilePath <String>] [-Fragment <String>] [-OptionSet <Hashtable>] [-SessionOption <SessionOption>] [-ValueSet <Hasht
able>] [<CommonParameters>]
The Set-WSManInstance cmdlet modifies the management information that is related to a resource.
This cmdlet uses the WinRM connection/transport layer to modify the information.
<
Online Version: http://go.microsoft.com/fwlink/p/?linkid=294044
Connect-WSMan
Disable-WSManCredSSP
Disconnect-WSMan
Enable-WSManCredSSP
Get-WSManCredSSP
Get-WSManInstance
Invoke-WSManAction
New-WSManInstance
New-WSManSessionOption
Remove-WSManInstance
Set-WSManQuickConfig
Test-WSMan
<
-------------------------- EXAMPLE 1 --------------------------
PS C:\>set-wsmaninstance -resourceuri winrm/config/listener -selectorset @{address="*";transport="https"} -valueset @{Enabled="false"}
cfg : http://schemas.microsoft.com/wbem/wsman/1/config/listener
xsi : http://www.w3.org/2001/XMLSchema-instance
lang : en-US
Address : *
Transport : HTTPS
Port : 443
Hostname :
Enabled : false
URLPrefix : wsman
CertificateThumbprint :
ListeningOn : {127.0.0.1, 172.30.168.171, ::1, 2001:4898:0:fff:0:5efe:172.30.168.171...}
This command disables the https listener on the local computer.
Important: The ValueSet parameter is case-sensitive when matching the properties specified.
For example, using the above command.
This fails: -ValueSet @{enabled="False"}
This succeeds: -ValueSet @{Enabled="False"}
-------------------------- EXAMPLE 2 --------------------------
PS C:\>set-wsmaninstance -resourceuri winrm/config -ValueSet @{MaxEnvelopeSizekb = "200"}
cfg : http://schemas.microsoft.com/wbem/wsman/1/config
lang : en-US
MaxEnvelopeSizekb : 200
MaxTimeoutms : 60000
MaxBatchItems : 32000
MaxProviderRequests : 4294967295
Client : Client
Service : Service
Winrs : Winrs
This command sets the MaxEnvelopeSizekb value to 200 on the local computer.
Important: The ValueSet parameter is case-sensitive when matching the properties specified.
For example, using the above command.
This fails: -ValueSet @{MaxEnvelopeSizeKB ="200"}
This succeeds: -ValueSet @{MaxEnvelopeSizekb ="200"}
-------------------------- EXAMPLE 3 --------------------------
PS C:\>set-wsmaninstance -resourceuri winrm/config/listener -computername SERVER02 -selectorset @{address="*";transport="https"} -valueset @{Enabled="false"}
cfg : http://schemas.microsoft.com/wbem/wsman/1/config/listener
xsi : http://www.w3.org/2001/XMLSchema-instance
lang : en-US
Address : *
Transport : HTTPS
Port : 443
Hostname :
Enabled : false
URLPrefix : wsman
CertificateThumbprint :
ListeningOn : {127.0.0.1, 172.30.168.172, ::1, 2001:4898:0:fff:0:5efe:172.30.168.172...}
This command disables the https listener on the remote computer SERVER02.
Important: The ValueSet parameter is case-sensitive when matching the properties specified.
For example, using the above command.
This fails: -ValueSet @{enabled="False"}
This succeeds: -ValueSet @{Enabled="False"}