ExportRSoPData function (gpedit.h)

The ExportRSoPData function exports a WMI namespace that contains RSoP information to a data file. The function writes the information to a data file that can be imported to a WMI namespace with a call to the ImportRSoPData function.

Syntax

GPEDITAPI HRESULT ExportRSoPData(
  [in] LPOLESTR lpNameSpace,
  [in] LPOLESTR lpFileName
);

Parameters

[in] lpNameSpace

A pointer to a string that specifies the namespace which contains the RSoP data.

[in] lpFileName

A pointer to a string that specifies the name of the file to receive the RSoP data.

Return value

If the function succeeds, the return value is S_OK. Otherwise, the function returns one of the COM error codes defined in the header file WinError.h.

Remarks

It is recommended that you call the ExportRSoPData function twice: one time to process the user data and a second time to process the computer data.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header gpedit.h
Library Gpedit.lib
DLL Gpedit.dll

See also

Group Policy Functions

Group Policy Overview

ImportRSoPData