GetCimSessionCommand Class
This command returns zero or more CimSession objects that represent connections with remote computers established from the current Windows PowerShell session.
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.GetCimSessionCommand
Syntax
[CmdletAttribute("Get", "CimSession", DefaultParameterSetName = "ComputerNameSet",
HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227966")]
[OutputTypeAttribute(new Type[] { ... })]
public sealed class GetCimSessionCommand : CimBaseCommand
[CmdletAttribute("Get", "CimSession", DefaultParameterSetName = "ComputerNameSet",
HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227966")]
[OutputTypeAttribute(new array<Type^>^ { ... })]
public ref class GetCimSessionCommand sealed : CimBaseCommand
[<Sealed>]
[<CmdletAttribute("Get", "CimSession", DefaultParameterSetName = "ComputerNameSet",
HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227966")>]
[<OutputTypeAttribute([| ... |])>]
type GetCimSessionCommand =
class
inherit CimBaseCommand
end
<CmdletAttribute("Get", "CimSession", DefaultParameterSetName := "ComputerNameSet",
HelpUri := "https://go.microsoft.com/fwlink/?LinkId=227966")>
<OutputTypeAttribute(New Type() { ... })>
Public NotInheritable Class GetCimSessionCommand
Inherits CimBaseCommand
Constructors
Name | Description | |
---|---|---|
GetCimSessionCommand() | Constructor for the GetCimSessionCommand class. The command returns zero or more CimSession objects that represent connections with remote computers established from the current Windows PowerShell session. |
Properties
Name | Description | |
---|---|---|
CommandOrigin | (Inherited from InternalCommand.) |
|
CommandRuntime | (Inherited from Cmdlet.) |
|
ComputerName | Gets and sets the ComputerName parameter, which specifies one or more connections by providing their computer names. The cmdlet then opens CIM sessions with those connections. |
|
CurrentPSTransaction | (Inherited from Cmdlet.) |
|
Id | Gets and sets the Id parameter, which specifies one or more numeric IDs for which to get CIM sessions. |
|
InstanceId | Gets and sets the InstanceId parameter, which specifies one or more GUIDs representing session instance IDs. |
|
Name | Gets and sets the Name property, which specifies the names of one or more CIM sessions. May contain wildcard characters. |
|
Stopping | (Inherited from Cmdlet.) |
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