启动 Web 管理服务

Microsoft.Windows.InternetInformationServices.2008.ServerRole.StartRemoteAdministrationService.Task (Task)

该任务将启动当前已停止的 Web 管理服务。 Web 管理服务为管理员赋予远程和委派管理功能,以管理 Web 服务器以及 Web 服务器上的站点和应用程序。

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.2008.ServerRole
AccessibilityPublic
CategoryMaintenance
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

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

Source Code:

<Task ID="Microsoft.Windows.InternetInformationServices.2008.ServerRole.StartRemoteAdministrationService.Task" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.2008.ServerRole" Timeout="300" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="Microsoft.Windows.InternetInformationServices.2008.ControlService">
<Operation>start WMSvc</Operation>
<TimeoutSeconds>60</TimeoutSeconds>
</WriteAction>
</Task>