Contact Info

Crumbtrail

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

Set-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 »

Set-CimInstance

Short description
Modifies a CIM instance on a CIM server by calling the ModifyInstance method of the CIM class..

Syntax
Set-CimInstance [-InputObject] <CimInstance> [-ComputerName <String[]>] [-OperationTimeoutSec <UInt32>] [-PassThru] [-P
roperty <IDictionary>] [-ResourceUri <Uri>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-CimInstance [-Query] <String> [-Namespace <String>] [-OperationTimeoutSec <UInt32>] [-PassThru] [-QueryDialect <Str
ing>] -CimSession <CimSession[]> -Property <IDictionary> [-Confirm] [-WhatIf] [<CommonParameters>]
Set-CimInstance [-InputObject] <CimInstance> [-OperationTimeoutSec <UInt32>] [-PassThru] [-Property <IDictionary>] [-Re
sourceUri <Uri>] -CimSession <CimSession[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Set-CimInstance [-Query] <String> [-ComputerName <String[]>] [-Namespace <String>] [-OperationTimeoutSec <UInt32>] [-Pa
ssThru] [-QueryDialect <String>] -Property <IDictionary> [-Confirm] [-WhatIf] [<CommonParameters>]





Description
The Set-CimInstance cmdlet modifies a CIM instance on a CIM server.


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.