Start iSCSI Target Service
Microsoft.Windows.FileServices.Service.iSCSITarget.10.0.StartService (Task)
Start the iSCSI Target Windows service
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.Windows.FileServices.Service.iSCSITarget.10.0.StartService" Accessibility="Public" Target="Microsoft.Windows.FileServices.Service.iSCSITarget.10.0" Enabled="true" Remotable="true">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="System!System.CommandExecuter">
<ApplicationName>%WINDIR%\System32\sc.exe</ApplicationName>
<WorkingDirectory/>
<CommandLine>\\$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$ start WinTarget</CommandLine>
<TimeoutSeconds>30</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
</WriteAction>
</Task>