SQL Server Service を停止します

Microsoft.SQLServer.2016.DBEngine.StopService (Task)

Element properties:

TargetMicrosoft.SQLServer.2016.DBEngine
AccessibilityInternal
CategoryMaintenance
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction System.CommandExecuter Microsoft.SQLServer.TaskAccount

Source Code:

<Task ID="Microsoft.SQLServer.2016.DBEngine.StopService" Target="SQL2016Core!Microsoft.SQLServer.2016.DBEngine" Accessibility="Internal" Enabled="true" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="System!System.CommandExecuter" RunAs="GPMP!Microsoft.SQLServer.TaskAccount">
<ApplicationName/>
<WorkingDirectory/>
<CommandLine>net stop $Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/ServiceName$ /y</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>