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 | |
---|---|---|
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 | |
---|---|---|
CommandOrigin | (Inherited from InternalCommand.) |
|
CommandRuntime | (Inherited from Cmdlet.) |
|
Culture | Gets and sets the Culture parameter, which specifies the culture to use. |
|
CurrentPSTransaction | (Inherited from Cmdlet.) |
|
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. |
|
Encoding | Gets and sets the Encoding parameter, which defines the message encoding. |
|
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. |
|
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. |
|
MaxEnvelopeSizeKB | Gets and sets the MaxEnvelopeSizeKB parameter, which sets the limit to the maximum size of the WSMan message envelope. |
|
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). |
|
PacketIntegrity | Gets and sets the PacketIntegrity parameter, which is a switch indicating whether to check and enforce the package integrity in DCOM connection. |
|
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. |
|
Protocol | Gets and sets the Protocol parameter, which specifies the protocol to use. |
|
ProxyAuthentication | Gets and sets the ProxyAuthentication parameter, which specifies the type of authentication to use. |
|
ProxyCertificateThumbprint | Gets and sets the ProxyCertificateThumbprint parameter. |
|
ProxyCredential | Gets and sets the ProxyCredential parameter, which is used by the proxy server when required. |
|
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. |
|
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. |
|
SkipCNCheck | Gets and sets the CertificateCNCheck parameter, which is a switch that specifies whether to validate the certificate name. |
|
SkipRevocationCheck | Gets and sets the SkipRevocationCheck parameter, which indicates whether to revoke the certificate. |
|
Stopping | (Inherited from Cmdlet.) |
|
UICulture | Gets and sets the UICulture parameter, which specifies the UI culture to use. |
|
UseSsl | Gets and sets the UseSSL switch parameter, which indicates whether to use Secure Sockets Layer (SSL). |
Methods
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