GPRsop Class

 

Contains methods and properties that you can use to generate Resultant Set of Policy (RSoP) queries in logging mode.

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)

Inheritance Hierarchy

System.Object
  Microsoft.GroupPolicy.GPRsop

Syntax

public class GPRsop : IDisposable
public ref class GPRsop : IDisposable
type GPRsop = 
    class
        interface IDisposable
    end
Public Class GPRsop
    Implements IDisposable

Constructors

Name Description
System_CAPS_pubmethod GPRsop(RsopMode, String)

Initializes a new instance of the GPRsop class.

Properties

Name Description
System_CAPS_pubproperty LoggingComputer

Gets or sets the name of the computer being logged.

System_CAPS_pubproperty LoggingMode

Gets or sets the logging mode.

System_CAPS_pubproperty LoggingUser

Gets or sets the name of the user targeted in logging mode.

System_CAPS_pubproperty Namespace

Retrieves the Resultant Set of Policy (RSoP) WMI namespace generated as output from an RSoP simulation.

System_CAPS_pubproperty RsopMode

Retrieves the Resultant Set of Policy (RSoP) mode for the report.

Methods

Name Description
System_CAPS_pubmethod CreateQueryResults()

Executes a Resultant Set of Policy (RSoP) query.

System_CAPS_pubmethod Dispose()

Releases all resources used by the current instance of the GPRsop class.

System_CAPS_pubmethod EnumerateLoggedUsers()

Enumerates all users that have logging mode data on the logging computer.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

Allows an instance of the GPRsop class to attempt to free resources and perform other cleanup operations before the it is reclaimed by garbage collection.(Overrides Object.Finalize().)

System_CAPS_pubmethod GenerateReport(ReportType)

Generates a report on the Resultant Set of Policy (RSoP) data.

System_CAPS_pubmethod GenerateReport(ReportType, GPStatusMessageCollection)

Generates a report on the Resultant Set of Policy (RSoP) data and returns status.

System_CAPS_pubmethod GenerateReportToFile(ReportType, String)

Generates a report on the Resultant Set of Policy (RSoP) data and writes it to a specified file.

System_CAPS_pubmethod GenerateReportToFile(ReportType, String, GPStatusMessageCollection)

Generates a report on the Resultant Set of Policy (RSoP) data, writes it to a specified file, and returns status.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ReleaseQueryResults()

Releases the Windows Management Instrumentation (WMI) namespace allocated by this instance.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

To generate an RSoP report:

  1. Instantiate a GPRsop object in logging mode.

  2. Set the RSoP object's LoggingComputer property to the targeted computer. If the LoggingComputer poprerty is not set, the current computer is used.

  3. Set the RSoP object's LoggingUser property to the targeted user. If the LoggingUser property is not set, the currently logged in user is used.

  4. Call the CreateQueryResults method to create a query.

  5. Call one of the overloaded GenerateReport methods to generate a report. You can alternatively call one of the overloaded GenerateReportToFile methods to generate a report and save it to a file.

RSoP logging mode requires the computer being targeted to be running Windows Server 2003, Windows XP, or a later version of Windows.

RSoP planning mode is not supported.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.GroupPolicy Namespace

Return to top