Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Get-CimInstance

Get-CimInstance - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Get-CimInstance

Short description
Gets the CIM instances of a class from a CIM server.

Syntax
Get-CimInstance [-ClassName] <String> [-ComputerName <String[]>] [-Filter <String>] [-KeyOnly] [-Namespace <String>] [-
OperationTimeoutSec <UInt32>] [-Property <String[]>] [-QueryDialect <String>] [-Shallow] [<CommonParameters>]
Get-CimInstance [-Filter <String>] [-KeyOnly] [-Namespace <String>] [-OperationTimeoutSec <UInt32>] [-Property <String[
]>] [-Shallow] -CimSession <CimSession[]> -ResourceUri <Uri> [<CommonParameters>]
Get-CimInstance [-InputObject] <CimInstance> [-OperationTimeoutSec <UInt32>] [-ResourceUri <Uri>] -CimSession <CimSessi
on[]> [<CommonParameters>]
Get-CimInstance [-Namespace <String>] [-OperationTimeoutSec <UInt32>] [-QueryDialect <String>] [-ResourceUri <Uri>] [-S
hallow] -CimSession <CimSession[]> -Query <String> [<CommonParameters>]
Get-CimInstance [-ClassName] <String> [-Filter <String>] [-KeyOnly] [-Namespace <String>] [-OperationTimeoutSec <UInt32
>] [-Property <String[]>] [-QueryDialect <String>] [-Shallow] -CimSession <CimSession[]> [<CommonParameters>]
Get-CimInstance [-ComputerName <String[]>] [-Filter <String>] [-KeyOnly] [-Namespace <String>] [-OperationTimeoutSec <U
Int32>] [-Property <String[]>] [-Shallow] -ResourceUri <Uri> [<CommonParameters>]
Get-CimInstance [-ComputerName <String[]>] [-Namespace <String>] [-OperationTimeoutSec <UInt32>] [-QueryDialect <String
>] [-ResourceUri <Uri>] [-Shallow] -Query <String> [<CommonParameters>]
Get-CimInstance [-InputObject] <CimInstance> [-ComputerName <String[]>] [-OperationTimeoutSec <UInt32>] [-ResourceUri <
Uri>] [<CommonParameters>]





Description
The Get-CimInstance cmdlet gets the CIM instances of a class from a CIM server. You can specify either the class name o
r a query for this cmdlet.


This cmdlet returns one or more CIM instance objects representing a snapshot of the CIM instances present on the CIM se
rver.


If the InputObject parameter is not specified, the cmdlet works in one of the following ways: 

--If neither the ComputerName parameter nor the CimSession parameter is specified, then this cmdlet works on local Wind
ows Management Instrumentation (WMI) using a Component Object Model (COM) session. 
--If either the ComputerName parameter or the CimSession parameter is specified, then this cmdlet works against the CIM
 server specified by either the ComputerName parameter or the CimSession parameter.


If the InputObject parameter is specified, the cmdlet works in one of the following ways: 

--If neither the ComputerName parameter nor the CimSession parameter is specified, then this cmdlet uses the CIM sessio
n or computer name from the input object. 
--If the either the ComputerName parameter or the CimSession parameter is specified, then this cmdlet uses the either t
he CimSession parameter value or ComputerName parameter value. Note: This is not very common.