Export (0) Print
Expand All

IWSManSession::Put method

Updates a resource.

Syntax


HRESULT Put(
  [in]   Variant resourceUri,
  [in]   BSTR resource,
  [in]   long flags,
  [out]  BSTR *result
);

Parameters

resourceUri [in]

The identifier of the resource to be updated.

This parameter can contain one of the following:

resource [in]

The updated resource content.

flags [in]

Reserved for future use. Must be set to 0.

result [out]

The XML stream that contains the updated resource content.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Redistributable

WinRM 1.1 (Windows Server 2003 R2, or Windows Server 2003 with SP1)

Header

Wsmandisp.h

IDL

Wsmandisp.idl

Library

WSManAutomation.lib

DLL

Wsmauto.dll

See also

IWSManSession
Session.Put

 

 

Show:
© 2014 Microsoft