GroupPolicyObject.GetFileSystemPath Method (GpoSection)

 

Retrieves the file system path to the root of the specified Group Policy object (GPO) section. The path is in UNC format.

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

Syntax

public string GetFileSystemPath(
    GpoSection section
)
public:
String^ GetFileSystemPath(
    GpoSection section
)
member GetFileSystemPath : 
        section:GpoSection -> string
Public Function GetFileSystemPath (
    section As GpoSection
) As String

Parameters

Return Value

Type: System.String

Returns String. The path in UNC format.

Exceptions

Exception Condition
ObjectDisposedException

The GroupPolicyObject is disposed.

Remarks

To retrieve the Active Directory path to the root of a GPO section, you can call the GetDSPath method.

See Also

GroupPolicyObject Class
Microsoft.GroupPolicy Namespace

Return to top