New-FsrmAction

in FSRM Module

Parameter Name Description
Body Specifies the content of an email. If you specify this parameter, you must set Email or Event Specify for the Type parameter.
Command Specifies the full path to the program or script. If you specify this parameter, you must set Command for the Type parameter.
CommandParameters Specifies the parameters for the program or script. If you specify this parameter, you must set Command for the Type parameter.
EventType Specifies the event type of the action. If you specify this parameter, you must set Event for the Type parameter. The acceptable values for this parameter are:?
— None
— Information
— Warning
— Error
KillTimeOut Specifies the timeout period, in minutes, after which the process that the action created is ended. Specify the default, -1, to indicate that the server does not end the process. If you specify this parameter, you must set Command for the Type parameter.
MailBCC Specifies a semicolon-separated list of email addresses for the Bcc recipients of an email. Valid email addresses are an administrator email account or the owner of the file. If you specify this parameter, you must set Email for the Type parameter.
MailCC Specifies a semicolon-separated list of email addresses for the Cc recipients of an email. Valid email addresses are an administrator email account or the owner of the file. If you specify this parameter, you must set Email for the Type parameter.
MailTo Specifies a semicolon-separated list of email addresses for the recipients of an email. Valid email addresses are an administrator email account or the owner of the file. If you specify this parameter, you must set Email for the Type parameter.
ReportTypes Specifies an array of report types that the action generates. If you specify this parameter, you must set Report for the Type parameter. The acceptable values for this parameter are:?
— DuplicateFiles
— FilesByFileGroup
— FilesByOwner
— FilesByProperty
— LargeFiles
— LeastRecentlyAccessed
— MostRecentlyAccessed
— QuotaUsage
RunLimitInterval Specifies the minimum interval, in minutes, before the server can run the action again. For example, if the interval expired since the action last ran, the server runs the action again in response to an event; otherwise, the server cannot run the action again. The default value, 60, specifies that there is no limit.
SecurityLevel Specifies the computer account type under which the program or script runs. The acceptable values for this parameter are:?
— LocalService
— NetworkService
— LocalSystem
ShouldLogError Indicates that the server records errors codes from running commands in the event log.
Subject Specifies the subject of an email. The maximum size of a subject is 1 KB. If you specify this parameter, you must set Email for the Type parameter.
Type Specifies the type of the action. This setting determines the action that the server takes in response to a quota or file screen event. The acceptable values for this parameter are:?
— Email
— Event
— Command
— Report
WorkingDirectory Specifies the working directory in which the program or script runs. You must specify a valid path to a folder. FSRM does not support paths to remote computers.

Windows PowerShell scripts and tools for task automation.