启动 W3SVC 服务
Microsoft.Windows.InternetInformationServices.2008.WebServer.StartWebServerService.Task (Task)
该任务将启动当前已停止的 Windows Internet Information Services Web 服务器 (W3SVC) 服务。
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.Windows.InternetInformationServices.2008.WebServer.StartWebServerService.Task" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.2008.WebServer" Timeout="300" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="Microsoft.Windows.InternetInformationServices.2008.ControlService">
<Operation>start W3SVC</Operation>
<TimeoutSeconds>60</TimeoutSeconds>
</WriteAction>
</Task>