启动 W3SVC 服务

Microsoft.Windows.InternetInformationServices.6.2.WebServer.StartWebServerService.Task (Task)

此任务将在当前停止 Windows Internet Information Services Web 服务器 (W3SVC) 服务时启动该服务。

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.WebServer
AccessibilityPublic
CategoryMaintenance
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

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

Source Code:

<Task ID="Microsoft.Windows.InternetInformationServices.6.2.WebServer.StartWebServerService.Task" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.WebServer" Timeout="300" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="Microsoft.Windows.InternetInformationServices.6.2.ControlService">
<Operation>start W3SVC</Operation>
<TimeoutSeconds>60</TimeoutSeconds>
</WriteAction>
</Task>