Richard Parmiter

Virtualisation blog and Knowledge Base

  • You are here: 
  • Home
  • Scripts/Reg

Profiling Adobe Acrobat Reader 9.2

Posted on October 21st, 2009

In order to profile Adobe Acrobat Reader 9.2 for Citrix streaming I did the following.

Stage 1 – Download source files

Download and install the Adobe Customization wizard 9

Download the distribution version of Acrobat reader 9.2. You need to register on the adobe site to get access to this download.

Extract the msi from the .exe that was downloaded by running the following

AdbeRdr920_en_US.exe” -nos_ne -nos_o”Extracted”

This will place the extracted files in the “Extracted” folder

Stage 2 – Create a customised installation

Open the customization wizard

Open the Reader msi (extracted above)

Select the options desired. I chose the following:

Supress display of EULA

Remove acrobat.com features

disbale all updates

disable help | Digital editions

Disable product improvement programs

Disable help | Purchase acrobat

Save the customisation MST file

Stage 3 – install

Create a .cmd file that contains the install string including the MST file. For example:

msiexec /i “acroread.msi” TRANSFORMS=”adobe_9_2_transform.MST”

Launch this .cmd file from the Citrix Streaming Profiler

Install as normal

Stage 4 – Add a pre-launch script

Even though the option to disable updates was selected during the customisation wizard, it is not disabled when streaming the app. The same applies to the customer improvment program.

The best way to remove these is to run a pre-launch script to set the reg keys to remove these options.

Create a .vbs script with the following contents

Set objWshShell = CreateObject(“WScript.Shell”)
objWshShell.RegWrite “HKLM\Software\Adobe\Adobe ARM\1.0\ARM\iCheck”, 0 ,”REG_DWORD”
objWshShell.RegWrite “HKCU\Software\Adobe\CommonFiles\Usage\Reader 9\OptIn”, 0 ,”REG_DWORD”

Call this script as a pre-launch script within the streaming profiler.

..

Tags: , , , , , , , ,
Filed under Citrix XenApp, Scripts/Reg | No Comments »

Remove the Network icon from the systray – Windows 2008

Posted on September 10th, 2009

Windows 2008 has some icons that appear in the systray by default. The network icon is an example that appears even in a terminal server or Citrix session, as shown:

It is un-necessary clutter that would be best to remove in the terminal server session. However, there is no Group Policy option to do this in a Windows 2003 domain.

The following registry keys are available and can be used to remove all the systray icons:
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\HideSCAVolume
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoAutoTrayNotify
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\HideSCANetwork
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoTrayItemsDisplay
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\HideClock
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\HideSCAPower

These can be added as a REG_DWORD and set to 1 to enable the setting.

They can also be added to the HKCU hive if required.

Tags: , , , , , , , ,
Filed under Scripts/Reg, Windows 2008 | No Comments »

Using Web Interface 5.x to send the full UPN username to a RADIUS server

Posted on September 2nd, 2009

Situation

Web Interface 5.1 (or 5.x)

Two factor authentication server is RADIUS

All user accounts use the full UPN name to login (i.e. user.name@domain.com)

Problem

By default, Web Interface does not send the full UPN username to the RADIUS server, so the two factor authentication fails.

Resolution

The following file needs to be edited to force Web Interface to send the full UPN username to the two factor authentication RADIUS server.

C:\Inetpub\wwwroot\Citrix\RADIUS\app_code\PagesJava\com\citrix\wi\pageutils\TwoFactorAuth.java

The method that requires changing is public static String getUserName(UPNCredentials token, boolean fullyQualified) at line 131

it should be changed to be:

public static String getUserName(UPNCredentials token, boolean fullyQualified) {

/*if (fullyQualified) {

return token.getShortDomain() + “\\” + token.getShortUserName();

} else {

return token.getShortUserName();

}*/

return token.getUserIdentity(); // This returns the full UPN as entered by the user

}

Web inteface 5.1 will now send the full UPN name to the RADIUS server.

References

Previous versions of Web Interface have different files that need to be edited.

Web Interface 3.x

Web Interface 4.x

Tags: , , , , , , , ,
Filed under Citrix Web Interface, Scripts/Reg | No Comments »

Script variable trimming

Posted on May 8th, 2009

Suppose you are trying to run some scripts based on a command line variable, but the variable being passed to it is surrounded by quote marks.

i.e. “device_name” when all i want is device_name

There is an easy way to trim this. In the script need to set this passed variable to a seperate variable, and then trim it byt doing the following:

SET tempvariable=%1                 (need to set %%1 if its run as a script file)

echo %1                                      (will show “device_name”)

echo %tempvariable%                 (will show “device_name”)

echo %tempvariable:~1,-1%       (will show device_name)

The trimmed variable can then be used for another task, i.e. to start a service on a remote server

sc \\%tempvariable:~1,-1% start “ServiceName”

Happy trimming!

Tags: , , , , , , , , , , ,
Filed under Scripts/Reg | 1 Comment »

Script to export all the servers in a Citrix Farm

Posted on April 27th, 2009

Sometimes it is useful to have a list of servers in a text file in order to perform some other task. The following script will export all servers from a Citrix Farm and add them to a text file.

This script uses the built in Citrix tool, qfarm, and cleans up the output to provide the required list. It uses a temporary file (qfarmservers.txt) during the process and deletes it at the end.

REM ***************************************************
REM qfarmservers  = output from a qfarm /servers
REM serverlist    = cleaned up list of all servers in farm
REM ***************************************************

SET qfarmservers=c:\windows\temp\qfarmservers.txt
SET serverlist=c:\windows\temp\serverlist.txt

qfarm /servers >>%qfarmServers%
for /f “skip=3 tokens=1″ %%1 in (%qfarmservers%) do (
echo %%1 >> %serverlist%
)
Del %qfarmservers% /q

Just change the log file location(s) as required.

Tags: , , , , , , , , ,
Filed under Scripts/Reg | 1 Comment »

Ads

Ads