Share via


RemoveCimSessionCommand Class

 

This cmdlet allows the user to remove (terminate) one or more CIM sessions.

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.RemoveCimSessionCommand

Syntax

[CmdletAttribute("Remove", "CimSession", SupportsShouldProcess = true, 
    DefaultParameterSetName = "CimSessionSet", HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227968")]
public sealed class RemoveCimSessionCommand : CimBaseCommand
[CmdletAttribute("Remove", "CimSession", SupportsShouldProcess = true, 
    DefaultParameterSetName = "CimSessionSet", HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227968")]
public ref class RemoveCimSessionCommand sealed : CimBaseCommand
[<Sealed>]
[<CmdletAttribute("Remove", "CimSession", SupportsShouldProcess = true,
    DefaultParameterSetName = "CimSessionSet", HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227968")>]
type RemoveCimSessionCommand = 
    class
        inherit CimBaseCommand
    end
<CmdletAttribute("Remove", "CimSession", SupportsShouldProcess := True,
    DefaultParameterSetName := "CimSessionSet", HelpUri := "https://go.microsoft.com/fwlink/?LinkId=227968")>
Public NotInheritable Class RemoveCimSessionCommand
    Inherits CimBaseCommand

Constructors

Name Description
System_CAPS_pubmethod RemoveCimSessionCommand()

Constructs an instance that allows the user to remove one or more CIM sessions.

Properties

Name Description
System_CAPS_pubproperty CimSession

Gets and sets the CimSession parameter, which specifies one or more CimSession objects to be removed from the local Windows PowerShell session.

System_CAPS_pubproperty CommandOrigin

(Inherited from InternalCommand.)

System_CAPS_pubproperty CommandRuntime

(Inherited from Cmdlet.)

System_CAPS_pubproperty ComputerName

Gets and sets the ComputerName parameter, which specifies one or more computer names for which all CIM sessions (connections) should be removed (terminated). This is the only optional parameter. If no value is provided for this parameter, all sessions are terminated.

System_CAPS_pubproperty CurrentPSTransaction

(Inherited from Cmdlet.)

System_CAPS_pubproperty Id

Gets and sets the Id property, which specifies the friendly IDs of the CIM sessions that are to be removed (terminated).

System_CAPS_pubproperty InstanceId

Gets and sets the InstanceId parameter, which specifies one or more GUIDs representing the sessions to remove (terminate).

System_CAPS_pubproperty Name

Gets and sets the Name parameter, which specifies the friendly names of the CIM sessions to remove (terminate).

System_CAPS_pubproperty Stopping

(Inherited from Cmdlet.)

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