Scheduled agent deployment for terminal server and it's failing with error from log wscfg32.xlg
Agent was failing on 1 Windows 2003 R2 SP2 server.
Error from vcredist_x86.log:
MSI (s) (7C:4C) [10:49:57:974]: Running install from non-console Terminal Server session.
MSI (s) (7C:4C) [10:49:57:974]: Machine policy value 'EnableAdminTSRemote' is 0
MSI (s) (7C:4C) [10:49:57:974]: Rejecting attempt to install from non-console Terminal Server Session
MSI (s) (7C:4C) [10:49:57:974]: Note: 1: 1729
MSI (s) (7C:4C) [10:49:57:974]: Product: Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.6161 -- Configuration failed.
MSI (s) (7C:4C) [10:49:57:974]: Windows Installer reconfigured the product. Product Name: Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.6161. Product Version: 9.0.30729.6161. Product Language: 1033. Reconfiguration success or error status: 1640.
MSI (s) (7C:4C) [10:49:57:974]: MainEngineThread is returning 1640
MSI (s) (7C:64) [10:49:57:974]: No System Restore sequence number for this installation.
Info 1640.Only administrators have permission to add, remove, or configure server software during a Terminal services remote session. If you want to install or configure software on the server, contact your network administrator.
Installing a Windows installer package will automatically install in Terminal Server Install mode. Other types of setup.exe packages may use the following methods to install:
• Use the Install Application on Terminal Server option in Control Panel to install the program.
• Before you install a program, run the change user /install command from the command line. After the program is installed, run the change user /execute command to exit from Install mode.
NOTE: You must add all users who you want to be able to connect to the terminal server to the Remote Desktop Users group, and you must install all programs via the Add or Remote Programs Control Panel applet. Ensure users are assigned to Remote Desktop Users group and Domain Admins Group (if Domain environment)
Changed status on server to allow installation on Terminal Server Session
Installing an application will create a .ini file in the TS system directory. The first time a user runs the application, the application looks in the home directory for its .ini file. If none is found then Terminal Server will copy the .ini file from the system directory to the users home directory. Each user will have a unique copy of the application's .ini file in their home directory.