すべてのセッションを照会します
Microsoft.Windows.Server.10.0.RemoteDesktopServicesRole.Service.RDSessionHost.QueryAllSessions (Task)
このタスクは、Query Session コマンドを実行して、リモート デスクトップ サービス セッションに関する情報を表示します。
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.Windows.Server.10.0.RemoteDesktopServicesRole.Service.RDSessionHost.QueryAllSessions" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.Server.10.0.RemoteDesktopServicesRole.Service.RDSessionHost" Timeout="300" Remotable="true">
<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>