RSOP_File



Requirements
Not supported on Windows 2000
Supported on Windows XP , Windows Server 2003

Namespace

Class RSOP_File originates from WMI namespace root\RSOP\Computer

Methods

Class RSOP_File has no methods.

Properties

Class RSOP_File has the following properties.

creationTime
 Data type: datetime
Access type: Read-only
 
ErrorCode
 Data type: integer/usint32
Access type: Read-only
 
GPOID
 Data type: string
Access type: Read-only
 
id
 Data type: string
Access type: Read-only
 
Mode
 Data type: integer/usint32
Access type: Read-only
 
name
 Data type: string
Access type: Read-only
 
OriginalPath
 Data type: string
Access type: Read-only
 
Path
 Data type: string
Access type: Read-only
 
precedence
 Data type: integer/usint32
Access type: Read-only
 
SDDLString
 Data type: string
Access type: Read-only
 
SOMID
 Data type: string
Access type: Read-only
 
Status
 Data type: integer/usint32
Access type: Read-only
 


Remarks

Class RSOP_File is derived from these classes:

RSOP_SecuritySettings
RSOP_PolicySetting


Sample Code

This sample demonstrates how to enumerate all instances of this class.

[VBScript]


strServer = "."

Set objWMI = GetObject("winmgmts://" & strServer & "/root\RSOP\Computer")
Set objInstances = objWMI.InstancesOf("RSOP_File",48)

For Each objInstance in objInstances
   WScript.Echo objInstance.getObjectText_
Next

This sample demonstrates how to list all individual properties of all instances of this class.

[VBScript]


strServer = "."

Set objWMI = GetObject("winmgmts://" & strServer & "/root\RSOP\Computer")
Set objInstances = objWMI.InstancesOf("RSOP_File",48)

On Error Resume Next
For Each objInstance in objInstances
    With objInstance
        WScript.Echo .creationTime
        WScript.Echo .ErrorCode
        WScript.Echo .GPOID
        WScript.Echo .id
        WScript.Echo .Mode
        WScript.Echo .name
        WScript.Echo .OriginalPath
        WScript.Echo .Path
        WScript.Echo .precedence
        WScript.Echo .SDDLString
        WScript.Echo .SOMID
        WScript.Echo .Status
    End With
On Error Goto 0
Next


Weitere Informationen:

MSDN Documentation