停止 Web 管理服務

Microsoft.Windows.InternetInformationServices.6.2.ServerRole.StopRemoteAdministrationService.Task (Task)

此工作將停止目前已啟動的 Web 管理服務。Web 管理服務會啟用遠端和委派管理功能,讓系統管理員可管理 Web 伺服器和 Web 伺服器上的站台與應用程式。

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.WMService
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.ServerRole.StopRemoteAdministrationService.Task" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.WMService" Timeout="300" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="Microsoft.Windows.InternetInformationServices.6.2.ControlService">
<Operation>stop WMSvc /Y</Operation>
<TimeoutSeconds>60</TimeoutSeconds>
</WriteAction>
</Task>