停止 Web 管理服務
Microsoft.Windows.InternetInformationServices.10.0.ServerRole.StopRemoteAdministrationService.Task (Task)
此工作將停止目前已啟動的 Web 管理服務。Web 管理服務會啟用遠端和委派管理功能,讓系統管理員可管理 Web 伺服器和 Web 伺服器上的站台與應用程式。請注意 Nano 不支援此工作。
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.Windows.InternetInformationServices.10.0.ServerRole.StopRemoteAdministrationService.Task" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.10.0.ServerRole" Timeout="300" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="Microsoft.Windows.InternetInformationServices.10.0.ControlService">
<Operation>stop WMSvc /Y</Operation>
<TimeoutSeconds>60</TimeoutSeconds>
</WriteAction>
</Task>