リモート デスクトップ (管理)

Microsoft.Windows.Server.Computer.MSTSCAdmin (ConsoleTask)

このコンピューターへのリモート デスクトップ管理セッションを開きます。

Knowledge Base article:

概要

このタスクは、リモート デスクトップ接続クライアント アプリケーションを起動します。ターゲット サーバーが Windows Server 2008 ベースのサーバーの場合は、このタスクを実行すると、リモート デスクトップ接続クライアントがターゲット サーバー上の管理セッションに接続されます。ターゲット サーバーが Windows Server 2003 ベースのサーバーの場合は、このタスクを実行すると、リモート デスクトップ接続クライアントがターゲット サーバー上の既存のコンソール セッションに接続されます。

Element properties:

TargetMicrosoft.Windows.Server.Computer
Application\%windir\%\system32\mstsc.exe
WorkingDirectory
isRequireOutputFalse
AccessibilityPublic
EnabledTrue

Source Code:

<ConsoleTask ID="Microsoft.Windows.Server.Computer.MSTSCAdmin" Accessibility="Public" Target="Windows!Microsoft.Windows.Server.Computer" RequireOutput="false" Category="MonitoringObject">
<Application>%windir%\system32\mstsc.exe</Application>
<Parameters>
<Parameter>/v:</Parameter>
<Parameter>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</Parameter>
<Parameter>/f</Parameter>
<Parameter>/admin</Parameter>
</Parameters>
<WorkingDirectory/>
</ConsoleTask>