다음을 통해 공유


IFsrmActionCommand.Account Property

 

Retrieves or sets the system account that is used to run the executable program specified in the ExecutablePath property.

This property is read/write.

Namespace:   Microsoft.Storage
Assembly:  srmlib (in srmlib.dll)

Syntax

_FsrmAccountType Account { get; set; }
property _FsrmAccountType Account {
    _FsrmAccountType get();
    void set(_FsrmAccountType value);
}
abstract Account : _FsrmAccountType with get, set
Property Account As _FsrmAccountType

Property Value

Type: Microsoft.Storage._FsrmAccountType

Returns a _FsrmAccountType which contains the full path to the executable program or script to run. The path can contain environment variables. The string is limited to MAX_PATH characters.

Remarks

The path must exist at the time you set the property and when the command executes. If the path does not exist when the command executes, FSRM writes an event to the Application log.

To execute the command, the user that configured the action must exist in the Administrators group at the time the command is executed.

Only administrators can have write access to all folders in the path at the time you set the property and when the command executes. If others have write access when the command executes, FSRM does not execute the command and writes an event to the Application log.

See Also

IFsrmActionCommand Interface
Microsoft.Storage Namespace

Return to top