Expand Minimize

RSOP_ScriptPolicySetting class

The RSOP_ScriptPolicySetting WMI class represents a script policy setting. The order of the RSOP_ScriptCmd objects is the order in which the scripts execute. This class was added for Windows XP.

Note  Classes that derive from the RSOP_PolicySetting class must redefine both the id and the precedence properties to be keys.

The following syntax is simplified from MOF code.

Syntax

class RSOP_ScriptPolicySetting : RSOP_PolicySetting
{
  string         id;
  uint32         precedence;
  RSOP_ScriptCmd scriptList[];
  uint32         scriptorder;
  uint32         scriptType;
};

Members

The RSOP_ScriptPolicySetting class has these types of members:

Properties

The RSOP_ScriptPolicySetting class has these properties.

id
Data type: string
Access type: Read-only
Qualifiers: Key

Inherited from RSOP_PolicySetting.

precedence
Data type: uint32
Access type: Read-only
Qualifiers: Key

Inherited from RSOP_PolicySetting.

scriptList
Data type: RSOP_ScriptCmd array
Access type: Read-only

List of RSOP_ScriptCmd objects containing information about the scripts to run.

scriptorder
Data type: uint32
Access type: Read-only
Qualifiers: Key

Relative order of instantiation of RSOP_ScriptPolicySetting objects.

scriptType
Data type: uint32
Access type: Read-only

Type that indicates when to run the scripts identified by the scriptList property. This property can have one of the following values.

ValueMeaning
1

Logon

2

Logoff

3

Startup

4

Shutdown

 

Remarks

The RSOP_ScriptPolicySetting class is derived from RSOP_PolicySetting.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Namespace

\\.\root\RSOP

MOF

Rsopcls.mof

See also

Group Policy Overview
Group Policy RSoP WMI Classes
RSOP_ScriptCmd

 

 

Show:
© 2014 Microsoft