MSFT_FSRMFMJNotificationAction class

Represents a new file management job notification action.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[dynamic, provider("FSRMWmiProvider")]
class MSFT_FSRMFMJNotificationAction
{
  uint32 Type;
  string MailTo = "";
  string MailCC = "";
  string MailBCC = "";
  string Subject = "";
  string Body = "";
  uint32 AttachmentFileListSize = 0;
  uint32 EventType;
  string Command;
  string WorkingDirectory = "";
  string CommandParameters = "";
  uint32 SecurityLevel = 22;
};

Members

The MSFT_FSRMFMJNotificationAction class has these types of members:

Methods

The MSFT_FSRMFMJNotificationAction class has these methods.

Method Description
CreateFMJNotificationAction Creates a new MSFT_FSRMFMJNotificationAction instance.

Properties

The MSFT_FSRMFMJNotificationAction class has these properties.

AttachmentFileListSize

Data type: uint32

Access type: Read/write

The number of files to include as an attachment to the sent email. When the value is 0, no list is attached. The default value is 0. See the AttachmentFileListSize property of the IFsrmActionEmail2 interface.

Body

Data type: string

Access type: Read/write

The subject of the email. This property is used if the Type property is 1 (Event) or 2 (Email) and is limited to 10KB. The default value is an empty string. See the MessageText property of the IFsrmActionEmail interface.

Command

Data type: string

Access type: Read/write

The full path to the executable program or script to run. The length must not exceed the value of MAX_PATH (260). This property is used if the Type property is 3 (Command.) See the ExecutablePath property of IFsrmActionCommand.

CommandParameters

Data type: string

Access type: Read/write

The parameters for the executable program or script to be run. The maximum length of the string is 10KB. This property is used if the Type property is 3 (Command.) See the Arguments property of IFsrmActionCommand.

EventType

Data type: uint32

Access type: Read/write

The event type of the action. This property is used if the Type property is 1 (Event.) See the FsrmEventType enumeration.

None (0)

The event type is unknown.

Information (1)

The event type is informational.

Warning (2)

The event type is a warning.

Error (3)

The event type is an error.

MailBCC

Data type: string

Access type: Read/write

A semicolon-separated list of email addresses that are to be on the BCC line of the mail. "[Admin Email]" and "[File Owner]" are acceptable email addresses. This property is used if the Type property is 2 (Email). The default value is an empty string. See the MailBcc property of the IFsrmActionEmail interface.

MailCC

Data type: string

Access type: Read/write

A semicolon-separated list of email addresses that are to be on the CC line of the mail. "[Admin Email]" and "[File Owner]" are acceptable email addresses. This property is used if the Type property is 2 (Email). The default value is an empty string. See the MailCc property of the IFsrmActionEmail interface.

MailTo

Data type: string

Access type: Read/write

A semicolon-separated list of email addresses that are to be on the To: line of the mail. "[Admin Email]" and "[File Owner]" are acceptable email addresses. This property is used if the Type property is 2 (Email). The default value is an empty string. See the MailTo property of the IFsrmActionEmail interface.

SecurityLevel

Data type: uint32

Access type: Read/write

The account under which the executable program or script will be run. The default value is 2 (LocalService). This property is used if the Type property is 3 (Command.) See the FsrmAccountType enumeration.

None (0)

The security level is not specified.

NetworkService (1)

The action is run in the context of the NetworkService Account.

LocalService (2)

The action is run in the context of the LocalService Account.

LocalSystem (3)

The action is run in the context of the LocalSystem Account.

Subject

Data type: string

Access type: Read/write

The subject of the email. This property is used if the Type property is 1 (Event) or 2 (Email) and is limited to 1KB. The default value is an empty string. See the MailSubject property of the IFsrmActionEmail interface.

Type

Data type: uint32

Access type: Read/write

Represents the type of the action, which determines the action that is taken in response to a quota or file screen event. See the FsrmActionType enumeration.

Event (1)

The Action is an event logged to the Application event log.

Email (2)

The Action is an email.

Command (3)

The Action is to run a command or script.

WorkingDirectory

Data type: string

Access type: Read/write

An optional string representing a valid path to a folder. Remote paths are not supported. The length must not MAX_PATH (260). The default value is an empty string. This property is used if the Type property is 3 (Command.) See the WorkingDirectory property of IFsrmActionCommand.

Remarks

Not all action types support every property in the class. The table below indicates which properties in this class are supported by each action type in the Type property.

Property/Type Event (1) Email (2) Command (3)
MailTo Yes No No
MailCC Yes No No
MailBCC Yes No No
Subject Yes No No
Body Yes Yes No
AttachmentFileListSize Yes No No
EventType No Yes No
Command No No Yes
WorkingDirectory No No Yes
CommandParameters No No Yes
SecurityLevel No No Yes

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\FSRM
MOF
MSFT_FSRM.mof
DLL
SrmSvc.dll

See also

FSRM WMI Classes