Query All Users

Microsoft.Windows.Server.2003.TerminalServerRole.QueryAllUsers (Task)

This task will execute the Query All Users command

Knowledge Base article:

Summary

The tasks Query All Users runs command Query USERS to display current Terminal Server users. Return the output of the command to standard out.

Configuration

There is no configuration required for this task.

Element properties:

TargetMicrosoft.Windows.Server.2003.TerminalServerRole
AccessibilityPublic
CategoryMaintenance
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction System.CommandExecuter Default

Source Code:

<Task ID="Microsoft.Windows.Server.2003.TerminalServerRole.QueryAllUsers" 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>USER</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>