Share via


NewCimSessionOptionCommand Class

 

This cmdlet allows the IT professional to create a CimSessionOptions object that they can then use to create one or more CimSession connections. The cmdlet has two sets of parameters, one for WMMan options and one for DCOM options. Depending on the arguments, the cmdlet will return either an instance of DComSessionOptions or WSManSessionOptions, which derive from CimSessionOptions.

Namespace:   Microsoft.Management.Infrastructure.CimCmdlets
Assembly:  Microsoft.Management.Infrastructure.CimCmdlets (in Microsoft.Management.Infrastructure.CimCmdlets.dll)

Inheritance Hierarchy

System.Object
  System.Management.Automation.Internal.InternalCommand
    System.Management.Automation.Cmdlet
      Microsoft.Management.Infrastructure.CimCmdlets.CimBaseCommand
        Microsoft.Management.Infrastructure.CimCmdlets.NewCimSessionOptionCommand

Syntax

[CmdletAttribute("New", "CimSessionOption", DefaultParameterSetName = "ProtocolTypeSet", 
    HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227969")]
[OutputTypeAttribute(new Type[] { ... })]
public sealed class NewCimSessionOptionCommand : CimBaseCommand
[CmdletAttribute("New", "CimSessionOption", DefaultParameterSetName = "ProtocolTypeSet", 
    HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227969")]
[OutputTypeAttribute(new array<Type^>^ { ... })]
public ref class NewCimSessionOptionCommand sealed : CimBaseCommand
[<Sealed>]
[<CmdletAttribute("New", "CimSessionOption", DefaultParameterSetName = "ProtocolTypeSet",
    HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227969")>]
[<OutputTypeAttribute([| ... |])>]
type NewCimSessionOptionCommand = 
    class
        inherit CimBaseCommand
    end
<CmdletAttribute("New", "CimSessionOption", DefaultParameterSetName := "ProtocolTypeSet",
    HelpUri := "https://go.microsoft.com/fwlink/?LinkId=227969")>
<OutputTypeAttribute(New Type() { ... })>
Public NotInheritable Class NewCimSessionOptionCommand
    Inherits CimBaseCommand

Constructors

Name Description
System_CAPS_pubmethod NewCimSessionOptionCommand()

Constructs an instance that allows the user to create a CimSessionOptions object to use for creating one or more CIM session connections.

Properties

Name Description
System_CAPS_pubproperty CommandOrigin

(Inherited from InternalCommand.)

System_CAPS_pubproperty CommandRuntime

(Inherited from Cmdlet.)

System_CAPS_pubproperty Culture

Gets and sets the Culture parameter, which specifies the culture to use.

System_CAPS_pubproperty CurrentPSTransaction

(Inherited from Cmdlet.)

System_CAPS_pubproperty EncodePortInServicePrincipalName

Gets and sets the EncodePortInServicePrincipalName parameter, which is a switch indicating that the Kerberos connection is connecting to a service whose service principal name (SPN) includes the service port number. This type of connection is not common.

System_CAPS_pubproperty Encoding

Gets and sets the Encoding parameter, which defines the message encoding.

System_CAPS_pubproperty HttpPrefix

Gets and sets the HttpPrefix parameter. This is the HTTP URL on the server on which the WSMan service is listening. In most cases it is /wsman, which is the default.

System_CAPS_pubproperty Impersonation

Gets and sets the Impersonation parameter, which is used to select the kind of impersonation to use, if any. This parameter only applies to the DCOM channel.

System_CAPS_pubproperty MaxEnvelopeSizeKB

Gets and sets the MaxEnvelopeSizeKB parameter, which sets the limit to the maximum size of the WSMan message envelope.

System_CAPS_pubproperty NoEncryption

Gets and sets the NoEncryption parameter, which is a switch indicating whether WSMan can use no encryption in the given CimSession (there are also global client and server WSMan settings - AllowUnencrypted).

System_CAPS_pubproperty PacketIntegrity

Gets and sets the PacketIntegrity parameter, which is a switch indicating whether to check and enforce the package integrity in DCOM connection.

System_CAPS_pubproperty PacketPrivacy

Gets and sets the PacketPrivacy parameter, a switch which indicates whether the packet privacy of the packets in DCOM communications should be checked and enforced.

System_CAPS_pubproperty Protocol

Gets and sets the Protocol parameter, which specifies the protocol to use.

System_CAPS_pubproperty ProxyAuthentication

Gets and sets the ProxyAuthentication parameter, which specifies the type of authentication to use.

System_CAPS_pubproperty ProxyCertificateThumbprint

Gets and sets the ProxyCertificateThumbprint parameter.

System_CAPS_pubproperty ProxyCredential

Gets and sets the ProxyCredential parameter, which is used by the proxy server when required.

System_CAPS_pubproperty ProxyType

Gets and sets the ProxyType parameter, which specifies the type of proxy to use. The following are the possible values: InternetExplorer, WinHttp, Auto, None.

System_CAPS_pubproperty SkipCACheck

Gets or sets the CertificateCACheck parameter, which is a switch indicating whether to validate that the server certificate is signed by a trusted certification authority (CA). Use this parameter only when the remote computer is trusted using another mechanism, such as when the remote computer is part of a network that is physically secure and isolated, or when the remote computer is listed as a trusted host in a WinRM configuration.

System_CAPS_pubproperty SkipCNCheck

Gets and sets the CertificateCNCheck parameter, which is a switch that specifies whether to validate the certificate name.

System_CAPS_pubproperty SkipRevocationCheck

Gets and sets the SkipRevocationCheck parameter, which indicates whether to revoke the certificate.

System_CAPS_pubproperty Stopping

(Inherited from Cmdlet.)

System_CAPS_pubproperty UICulture

Gets and sets the UICulture parameter, which specifies the UI culture to use.

System_CAPS_pubproperty UseSsl

Gets and sets the UseSSL switch parameter, which indicates whether to use Secure Sockets Layer (SSL).

Methods

Name Description
System_CAPS_pubmethod Dispose()

Releases resources.(Inherited from CimBaseCommand.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetResourceString(String, String)

(Inherited from Cmdlet.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Invoke()

(Inherited from Cmdlet.)

System_CAPS_pubmethod ShouldContinue(String, String)

(Inherited from Cmdlet.)

System_CAPS_pubmethod ShouldContinue(String, String, Boolean, Boolean, Boolean)

(Inherited from Cmdlet.)

System_CAPS_pubmethod ShouldContinue(String, String, Boolean, Boolean)

(Inherited from Cmdlet.)

System_CAPS_pubmethod ShouldProcess(String)

(Inherited from Cmdlet.)

System_CAPS_pubmethod ShouldProcess(String, String)

(Inherited from Cmdlet.)

System_CAPS_pubmethod ShouldProcess(String, String, String)

(Inherited from Cmdlet.)

System_CAPS_pubmethod ShouldProcess(String, String, String, ShouldProcessReason)

(Inherited from Cmdlet.)

System_CAPS_pubmethod ThrowTerminatingError(ErrorRecord)

(Inherited from Cmdlet.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod TransactionAvailable()

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteCommandDetail(String)

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteDebug(String)

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteError(ErrorRecord)

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteInformation(InformationRecord)

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteInformation(Object, String[])

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteObject(Object)

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteObject(Object, Boolean)

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteProgress(ProgressRecord)

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteVerbose(String)

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteWarning(String)

(Inherited from Cmdlet.)

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Management.Infrastructure.CimCmdlets Namespace

Return to top