Remote Desktop (Admin)

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

Open a remote desktop administration session to this computer.

Knowledge Base article:

Summary

This Task starts the Remote Desktop Connection client application. If the target server is a Windows Server 2008-based server, then once executed the Remote Desktop Connection client will connect to the administration session on the target server. If the target server is a Windows Server 2003-based server, then once executed the Remote Desktop Connection client will connect to the existing Console session on the target server.

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>