Partager via


InstallSoftwareFromURI method of the CIM_PhysicalComputerSystemView class

An extrinsic method for installing software on this physical computer system. If 0 is returned, the function completed successfully and no ConcreteJob instance was required. The return value shall be 1 if the request is not supported, and 2 if an error occurred. If 4096 is returned, a ConcreteJob will be started to to perform the install. The Job's reference will be returned in the output parameter Job.

Syntax

uint32 InstallSoftwareFromURI(
  [in, out] CIM_ConcreteJob REF Job,
  [in]      uint16              Classifications[],
  [in]      string              URI,
  [in]      uint16              InstallOptions[],
  [in]      string              InstallOptionsValues[]
);

Parameters

Job [in, out]

Reference to the job (may be null if job completed).

Classifications [in]

See CIM_SoftwareIdentity.Classifications for details.

Firmware (10)

BIOS/FCode (11)

Software Bundle (13)

Management Firmware (14)

DMTF Reserved

15 32767

Vendor Reserved

32768 65535

URI [in]

See CIM_SoftwareInstallationService.InstallFromURI.URI for details.

InstallOptions [in]

See CIM_SoftwareInstallationService.InstallFromURI.InstallOptions for details.

Defer target/system reset (2)

Force installation (3)

Install (4)

Update (5)

Repair (6)

Reboot (7)

Password (8)

Uninstall (9)

Log (10)

SilentMode (11)

AdministrativeMode (12)

ScheduleInstallAt (13)

DMTF Reserved

14 32767

Vendor Specific

32768 65535

InstallOptionsValues [in]

See CIM_SoftwareInstallationService.InstallFromURI.InstallOptionsValues for details.

Return value

Completed with No Error (0)

Not Supported (1)

Failed (2)

Job Started (4096)

DMTF Reserved (4097 32767)

Vendor Reserved (32768 65535)

Requirements

Minimum supported client
Windows 8.1
Minimum supported server
Windows Server 2012 R2
Namespace
Root\Microsoft\Windows\HardwareManagement
MOF
Pcsvdevice.mof
DLL
PCSVdevice.dll

See also

CIM_PhysicalComputerSystemView