Display Active Sessions

Microsoft.Windows.Server.10.0.Computer.SessionQuery.Task (Task)

Display a list of all the sessions on the server.

Element properties:

TargetMicrosoft.Windows.Server.10.0.Computer
AccessibilityPublic
CategoryMaintenance
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
PA ProbeAction System.CommandExecuterProbe Default

Source Code:

<Task ID="Microsoft.Windows.Server.10.0.Computer.SessionQuery.Task" Target="ServervNext!Microsoft.Windows.Server.10.0.Computer" Accessibility="Public">
<Category>Maintenance</Category>
<ProbeAction ID="PA" TypeID="System!System.CommandExecuterProbe">
<ApplicationName>%WINDIR%\System32\NET.EXE</ApplicationName>
<WorkingDirectory/>
<CommandLine>SESSION</CommandLine>
<TimeoutSeconds>30</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</ProbeAction>
</Task>