Browse Ask a Question
 
Tools
Rss Categories

How to progammatically turn ThinDesktop On/Off

Author: ThinLaunch Support Reference Number: AA-00224 Views: 2921 Created: 2015-03-10 02:14 Last Updated: 2015-03-10 02:14 0 Rating/ Voters

There may be times when you need to disable ThinDesktop without the ability to run TD Builder and click "Off".

The TDCMD command line tool can easily accommodate this request.

From C:\Program Files\ThinLaunch\ThinDesktop  (C:\Program Files (x86)\ThinLaunch\ThinDesktop on 64-bit system), execute tdcmd.exe -off.

There are many ways to execute a process remotely. You can use Microsoft's PSEXEC tool or WinRS  for Windows 7+ operating systems provided your client has enabled WinRM.

For more information on WinRM, visit: https://msdn.microsoft.com/en-us/library/dd163506.aspx

For information on PSEXEC, visit http://ss64.com/nt/psexec.html

You can download psexec.exe from: http://live.sysinternals.com/psexec.exe

Example WinRS Command

winrs -R:COMPUTER1 "c:\program files\thinlaunch\thindesktop\tdcmd.exe" -off

Example PSEXEC Command

psexec \\COMPUTER -u COMPUTER\admin_user "c:\program files\thinlaunch\thindesktop\tdcmd.exe" -off -accepteula