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 | |
---|---|---|
![]() |
GPRsop(RsopMode, String) | Initializes a new instance of the GPRsop class. |
Properties
Name | Description | |
---|---|---|
![]() |
LoggingComputer | Gets or sets the name of the computer being logged. |
![]() |
LoggingMode | Gets or sets the logging mode. |
![]() |
LoggingUser | Gets or sets the name of the user targeted in logging mode. |
![]() |
Namespace | Retrieves the Resultant Set of Policy (RSoP) WMI namespace generated as output from an RSoP simulation. |
![]() |
RsopMode | Retrieves the Resultant Set of Policy (RSoP) mode for the report. |
Methods
Name | Description | |
---|---|---|
![]() |
CreateQueryResults() | Executes a Resultant Set of Policy (RSoP) query. |
![]() |
Dispose() | Releases all resources used by the current instance of the GPRsop class. |
![]() |
EnumerateLoggedUsers() | Enumerates all users that have logging mode data on the logging computer. |
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
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().) |
![]() |
GenerateReport(ReportType) | Generates a report on the Resultant Set of Policy (RSoP) data. |
![]() |
GenerateReport(ReportType, GPStatusMessageCollection) | Generates a report on the Resultant Set of Policy (RSoP) data and returns status. |
![]() |
GenerateReportToFile(ReportType, String) | Generates a report on the Resultant Set of Policy (RSoP) data and writes it to a specified file. |
![]() |
GenerateReportToFile(ReportType, String, GPStatusMessageCollection) | Generates a report on the Resultant Set of Policy (RSoP) data, writes it to a specified file, and returns status. |
![]() |
GetHashCode() | (Inherited from Object.) |
![]() |
GetType() | (Inherited from Object.) |
![]() |
MemberwiseClone() | (Inherited from Object.) |
![]() |
ReleaseQueryResults() | Releases the Windows Management Instrumentation (WMI) namespace allocated by this instance. |
![]() |
ToString() | (Inherited from Object.) |
Remarks
To generate an RSoP report:
Instantiate a GPRsop object in logging mode.
Set the RSoP object's LoggingComputer property to the targeted computer. If the LoggingComputer poprerty is not set, the current computer is used.
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.
Call the CreateQueryResults method to create a query.
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