This task will execute the Query All Sessions command
Task Query all Sessions runs command Query SESSION to display current Terminal Server sessions. Return the output of the command to standard out.
There are is configuration required for this task.
Target | Microsoft.Windows.Server.2003.TerminalServerRole |
Accessibility | Public |
Category | Maintenance |
Enabled | True |
Remotable | False |
Timeout | 300 |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
WA | WriteAction | System.CommandExecuter | Default |
<Task ID="Microsoft.Windows.Server.2003.TerminalServerRole.QueryAllSessions" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.Server.2003.TerminalServerRole">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="System!System.CommandExecuter">
<ApplicationName>%SystemRoot%\System32\Query.exe</ApplicationName>
<WorkingDirectory>%SYSTEMROOT%\temp</WorkingDirectory>
<CommandLine>SESSION</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>