Detener todos los servicios IIS

Microsoft.Windows.InternetInformationServices.10.0.ServerRole.StopInternetServices.Task (Task)

Esta tarea parará todos los servicios de Internet de Windows Servicios de Internet Information Server Internet.

Element properties:

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

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction System.CommandExecuter Default

Source Code:

<Task ID="Microsoft.Windows.InternetInformationServices.10.0.ServerRole.StopInternetServices.Task" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.10.0.ServerRole" Timeout="300" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="System!System.CommandExecuter">
<ApplicationName/>
<WorkingDirectory/>
<CommandLine>net stop IISADMIN /y &amp; net stop W3SVC &amp; net stop WAS /y</CommandLine>
<TimeoutSeconds>60</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>