This topic has not yet been rated - Rate this topic

ExportRSoPData function

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


HRESULT ExportRSoPData(
  _In_  LPOLESTR lpNameSpace,
  _In_  LPOLESTR lpFileName
);

Parameters

lpNameSpace [in]

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

lpFileName [in]

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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Gpedit.h

Library

Gpedit.lib

DLL

Gpedit.dll

See also

Group Policy Overview
Group Policy Functions
ImportRSoPData

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.