Quantcast
Channel: Remote Desktop Services (Terminal Services) forum
Viewing all articles
Browse latest Browse all 1106

Use batch file to determine if computer is a terminal server

$
0
0

Hello experts,
I am trying to create a batch file that I can use to install MS Office 2013 and another software on Windows Server 2003 R2, Windows Server 2008 R2, and Windows Server 2012 terminal servers (Remote Desktop Services) via GPO. The installation files are NOT "msi" files.  Can you please tell me how I can use command line in a batch or script file to determine if a machine is a terminal server or not? I tried the Change user /query command on a Windows Server 2008 R2 terminal server and a Windows 7 machine and both machines returned the following status

Application EXECUTE mode is enabled.

which will be a problem because the installation batch file would treat the Windows 7 machines as a terminal server when it's not really a terminal server.

Basically, I want the batch file to check to determine if the machine is a terminal server. If it is a terminal server, then it would run change user /install, install the software, reboot server, then run change user / execute.  Your help will be greatly appreciated.


Viewing all articles
Browse latest Browse all 1106

Trending Articles