啟動 SMTP 服務

Microsoft.Windows.InternetInformationServices.10.0.LegacySMTPServer.StartSMTPServerService.Task (Task)

此工作將啟動目前已停止的 Windows Internet Information Services SMTP 伺服器 (SMTPSVC) 服務。Nano 不予以支援。

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.10.0.LegacySMTPServer
AccessibilityPublic
CategoryMaintenance
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction Microsoft.Windows.InternetInformationServices.10.0.ControlService Default

Source Code:

<Task ID="Microsoft.Windows.InternetInformationServices.10.0.LegacySMTPServer.StartSMTPServerService.Task" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.10.0.LegacySMTPServer" Timeout="300" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="Microsoft.Windows.InternetInformationServices.10.0.ControlService">
<Operation>start SMTPSVC</Operation>
<TimeoutSeconds>60</TimeoutSeconds>
</WriteAction>
</Task>