Status van de Server-service ophalen
Microsoft.Windows.FileServices.SMB.6.3.ServerQuery (Task)
Met de opdracht 'sc query lanmanserver' wordt een query voor de Server-service uitgevoerd om te bepalen of de service actief is.
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.Windows.FileServices.SMB.6.3.ServerQuery" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.FileServices.Service.SMB.6.3" Timeout="300" Remotable="true">
<Category>Operations</Category>
<ProbeAction ID="PA" TypeID="System!System.CommandExecuterProbe">
<ApplicationName>%SystemRoot%\System32\sc.exe</ApplicationName>
<WorkingDirectory/>
<CommandLine>\\$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$ query lanmanserver</CommandLine>
<TimeoutSeconds>30</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
</ProbeAction>
</Task>