|
Remote Executer For Terminal Server / Citrix is a small utility program that permits, through the virtual channel, to execute a command line on the client machine from a remote session on the Terminal Server. Using this utility, user can launch any program with parameters on the client side.
|
|
USING:
- To open a text file with Notepad program on local machine:
TSRemoteExec Notepad.exe C:\My Documents\MyTextFile.txt
- To open any document file (Word, Excel, Jpg, PDF, etc) with the default associated program on the local machine, just specify the file name as argument:
TSRemoteExec MyWordFile.doc
TSRemoteExec “C:\My Documents\MyPDFFile.pdf” (with space in the path/file name)
-To open a website on the client side, just specify the URL as argument
TSRemoteExec http://www.microsoft.com
CONFIGURATION FOR REDIRECTING HTTP/HTTPS TO CLIENT SIDE
It may be configured on the server to redirect all URL to open on the local machine.
- To redirect http link (or http, https, ftp protocols) from server to client we have to modify Windows Registry on the server:
Please backup your registry before making the modification, if you are not sure about this, DON'T DO IT
Use Regedit.exe to change the setting of HTTP protocol:
• Find the HKEY_CLASS_ROOT\HTTP\Shell\Open\ddeexec and rename it to ddeexec _bak
• Find the HKEY_CLASS_ROOT\HTTP\Shell\Open\command and copy it Default value setting, it should be similar the following line on a 64-bit server:
"C:\Program Files (x86)\Internet Explorer\iexplore.exe" -nohome
• If your server is 64-bit Windows, edit and change the Default value to :
Option 1 - Use a Black List to filter out blocked URLs
TSRemoteExec %1 /DEFAULT:"C:\Program Files (x86)\Internet Explorer\iexplore.exe"
(or CTXRemoteExec %1 if you use the Citrix version).
• If your server is 32-bit, edit and change the Default value to :
TSRemoteExec %1 /DEFAULT:"C:\Program Files\Internet Explorer\iexplore.exe"
With this setup, when user clicks on an Internet http link in an Outlook email, the execution will be forwarded to Remote Executer, the program itself will verify:
1. If it isn’t under a Remote session, the link will be opened by the browser on the server, with the command line specified by /DEFAULT option
(/DEFAULT:"C:\Program Files (x86)\Internet Explorer\iexplore.exe")
2. If it is under a Remote Session, Remote Executer will verify if the link IS-NOT-IN the BLACK LIST in the server registry key, i.e:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MQTechnologies\RemoteExecuter\UrlRedirection\BlackList]
url1=http://www.microsoft.com
url2=http://www.yahoo.com
the link will be then opened in the browser on the client machine.
You can add link to the Black List as many as you want, each with a new key following the format:
url1=http://www.website1.com
url2=http://www.website2.com
url3=http://www.website3.com
To block all sub-domains of a web site, enter the format with asterisk * character. Ex:
url1=*.google.com will block any sub-domains of google.com
Option 2 - Use a White List to allow only some specified URLs
TSRemoteExec %1 /DEFAULT:"C:\Program Files (x86)\Internet Explorer\iexplore.exe" /USEWHITELIST
(or CTXRemoteExec %1 if you use the Citrix version).
• If your server is 32-bit, edit and change the Default value to :
TSRemoteExec %1 /DEFAULT:"C:\Program Files\Internet Explorer\iexplore.exe" /USEWHITELIST
With this setup, when user clicks on an Internet http link in an Outlook email, the execution will be forwarded to Remote Executer, the program itself will verify:
1. If it isn’t under a Remote session, the link will be opened by the browser on the server, with the command line specified by /DEFAULT option
(/DEFAULT:"C:\Program Files (x86)\Internet Explorer\iexplore.exe")
2. If it is under a Remote Session, Remote Executer will verify if the link IS-IN the WHITE LIST in the server registry key, i.e:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MQTechnologies\RemoteExecuter\UrlRedirection\WhiteList]
url1=http://www.microsoft.com
url2=http://www.yahoo.com
the link will be then opened in the browser on the client machine.
CONFIGURATION URL REDIRECTION FOR MS WORD, EXCEL
Follow this KB:
http://support.microsoft.com/kb/218153
|