Pages

Monday, January 30, 2012

Citrix XenApp 6.5 pass-through authentication through Web Interface prompts for log in credentials when you launch a published application

Problem

You’ve followed Citrix’s documentation to configure pass-through authentication but while it works through the Web Interface login page, you find that you are continuously promoted for credentials via the XenApp 6.5 server’s Windows 2008 R2 login screen whenever you try to launch an application:

image

You’re sure that you have the configuration in place.

Solution

Note that there are probably various causes for this but one of the common causes is having the wrong plug-in and for the purpose of this example, the workstation being used to access the published XenApp applications has the incorrect Citrix Receiver.  There are actually 2 Citrix receivers that you can download:

  1. Citrix Receiver
  2. Citrix Receiver Enterprise

It’s easy to overlook the 2 as the second one isn’t clearly labeled as the enterprise version.  Here are the links and the respective screenshots of the page to download them and how they look like in Programs and Features:

Citrix Receiver

http://www.citrix.com/site/ss/downloads/details.asp?downloadId=2319934&productId=1689163&c1=pov1859723&c2=ost12723&c3=sot1689164

image

29.8MB in size.

image

Citrix Receiver Enterprise

https://www.citrix.com/English/ss/downloads/details.asp?downloadId=2319945&productId=1689163

image

55.1MB in size and with the “- Admins” concatenation at the end of “Receiver for Windows 3.1”.  The package is also larger because it’s bundled with the regular Receiver as well:

image

What’s interesting is that the Enterprise version is actually smaller in size than the regular one:

CitrixReceiver.exe – 31,319,99KB
CitrixReceiverEnterprise.exe – 27,154,384KB

image

Note that if you’re reinstalling the Citrix Receiver Enterprise to correct your pass-through authentication problem, make sure you reboot your workstation after the plug-in is installed because I did not see the ssonsvr.exe service listed in task manager until I rebooted the workstation:

image

Sunday, January 29, 2012

Activating Windows 7 and Office 2010 KMS licensed desktops with Volume Activation Management Tool (VAMT)

I think it’s important to show that as unappealing KMS licensing may seem, Microsoft does provide the Volume Activation Management Tool (VAMT) that allows administrators to activate desktops extremely easy.  As much as I would rather not have to use KMS keys, I’m actually grateful this tool exists which is why I’ve decided to write this post demonstrating the process of activating Windows 7 with Office 2010 desktops using this tool.

Log onto your KMS server with the VAMT tool installed:

image

Once the tool launches, you’ll be presented with the following window:

image

VAMT allows you the following options to search for computers:

  1. Manually enter name or IP address
  2. Search for computers in the Active Directory
  3. Search for computers in the workgroup
  4. Search with LDAP query

image

For the purpose of the example, I’ll be using the Search for computers in the Active Directory option.  Once that option is selected, choose or type the appropriate domain you want to search in for the Search for computers in this domain field, click on Add Computers and VAMT will search and list all of the servers and desktops it can find the Active Directory.  What’s nice about the lower window is that once the search results are displayed, you can filter and sort them by entering strings underneath the column headers.  Notice that I’ve entered the strong “br” under the Computer Name column which automatically filtered out all the computers aside from ones that starts with “br”:

image

Once you’ve filtered the list of computers to the ones you want to activate, select all of the computers, right click and you’ll see an Update Status option then as you hoover over that action, you will see 2 other options: Current Credentials and Alternate Credential.  Which one you should choose will depend on the account you’re logged in as and whether it has permissions to all of the desktops in the list.  Since I was logged in as a domain administrator, I choose the Current Credential option:

image

As soon as you click on the Current Credential option, a new window will pop up that shows the status of the product being updated:

image

The time it takes for the product information to be collected will (no surprise) depend on how many desktops you have but once the process completes, the window will look something like this:

image

As shown in the results from updating the license status information (Out of box grace), some of the desktops require their Office 2010 application’s licensed renewed:

image

To activate the licenses, simply select the ones that need to be activated or select all of them (I get lazy sometimes), right click, select Activate then KMS Activate:

image

Assuming that you have your DNS set up properly to have the desktops automatically discover your KMS host, leave the options as default and click OK:

image

The activation will begin:

image

… and eventually complete:

image

Review the Action Status tab’s results to ensure that all of the desktops have the status as:

Successfully activated the product with KMS server.

image

… and there we have it, all the licenses have been activated:

image

It’s also worth noting that VAMT also allows you to install product keys for situations such as if you have the MAK keys entered during the installation of the Office suite as well as activating Office MAK keys online:

image

Adobe Reader X (10.1.2) crashes whenever you try to print with event ID 1000 errors

Problem

You’ve been getting complaints from your users that Adobe Reader X (10.1.2) crashes whenever they try to print from their Windows 7 32-bit workstations.  As soon as the users try to open the print window, Adobe shuts down.

image

Reviewing the event logs, you see event IDs 1000 and 1001 logged in the Application logs:

image

Event ID 1000 Error

Faulting application name: AcroRd32.exe, version: 10.1.2.45, time stamp: 0x4f02e382
Faulting module name: AcroRd32.exe, version: 10.1.2.45, time stamp: 0x4f02e382
Exception code: 0xc0000005
Fault offset: 0x0005e985
Faulting process id: 0xe18
Faulting application start time: 0x01ccdebd99cc2c22
Faulting application path: C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe
Faulting module path: C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe
Report Id: e3486582-4ab0-11e1-a248-005056be608e

image

Event ID 1001 Information

Fault bucket 2778652943, type 1
Event Name: APPCRASH
Response:
http://oca.microsoft.com/resredir.aspx?SID=20173&iBucketTable=1&iBucket=-1516314353&BucketHash=562c3c70ba40be4a22c1f7dcbd9cc36c
Cab Id: 0

Problem signature:
P1: AcroRd32.exe
P2: 10.1.2.45
P3: 4f02e382
P4: AcroRd32.exe
P5: 10.1.2.45
P6: 4f02e382
P7: c0000005
P8: 0005e985
P9:
P10:

Attached files:
D:\Users\Miranda\AppData\Local\Temp\WER7845.tmp.WERInternalMetadata.xml

These files may be available here:
D:\Users\Miranda\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_AcroRd32.exe_273bd88dc0e0dbfc9662d58705c9fe14cef6039_086e9170

Analysis symbol:
Rechecking for solution: 0
Report Id: e3486582-4ab0-11e1-a248-005056be608e
Report Status: 0

image

Solution

With a bit of research and weeding through threads that had solutions such as checking the printer shared name, I finally found the solution here: http://forums.adobe.com/message/3499925

This problem is apparently caused by Adobe Reader X’s Protected Mode at startup feature shown here:

image

image

While disabling this feature is probably going to be a security vulnerability, I have 50+ virtual desktops that I need to fix before the weekend ends so I went ahead and applied the following registry change to the master image, recomposed my VMware View virtual desktops and was on my way:

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Acrobat Reader\10.0\FeatureLockDown]
"bProtectedMode"=dword:00000000

image

Once the above registry key is added, the Preferences window should look like this:

image

This is another one of the many times I’m thankful that I’m working with linked-clones in VMware View.

Saturday, January 28, 2012

Automating VMware View Client logon with Active Directory credentials on a Windows workstation

The client I’m currently working with is trying to extend the life of their desktops that was around since I was still attending university and slowly move to thin-clients as they require replacement and one of the tasks this weekend was to automate the login process to their VMware View 5.0 virtual desktops upon logging into Windows with their Active Directory credentials.  First off, the lesson I learned is not to use a server to do any testing as I had plenty of issues with the correct syntax for the VMware View Client to automatically login.

The method I used to automate the logon process was the switches accepted by the VMware View Client’s executable as the options provided by the adm file via GPO was too confusing for me.  The following are the switches available for VMware View Client (wswc.exe) which is located in the following directory:

C:\Program Files\VMware\VMware View\Client\bin\

Command line option must be followed by an option name

VMware View Client 5.0.0 build-481677 command line usage:
-desktopName XXX         Desktop to autostart
-domainName XXX          Domain for server login
-file XXX                File with additional command line parameters
-languageId XXX          LCID of language to use (if available), e.g. 0x409 for
English
-nonInteractive          Suppress error message boxes for fully scripted startup

-password XXX            Password for server login
-smartCardPIN XXX        PIN for smart card login
-desktopProtocol XXX     Attempt to use the specified desktop display protocol
-desktopLayout XXX       Specify desktop screen size (e.g. fullscreen, multimoni
tor, windowLarge, or windowSmall)
-serverURL XXX           URL for the View Connection Server
-logInAsCurrentUser XXX  Log in as current user (true or false)
-userName XXX            User name for server login
-unattended              Start in unattended mode. Connects to the entitled desk
top without user interaction
-connectUSBOnStartup XXX Connect all USB devices to a desktop when it is launche
d (true or false)
-connectUSBOnInsert XXX  Connect a USB device to the foreground desktop when the
device is plugged in (true or false)
-printEnvironmentInfo    Print information about the system
-rollback                Rolls back a check out (need -desktopName)
-confirmRollback         Confirm rollback operation in non-interactive mode
-?                       Show this help
Option names are case insensitive.

VMware’s documentation of the switches can be found here: http://pubs.vmware.com/view-50/index.jsp?topic=/com.vmware.view.administration.doc/GUID-C6E7AF06-1D9F-4096-8753-D6F6C7B58DB1.html

image

Note that all of the switches are CASE SENSITIVE so if you make a minor mistake in the capitalization, the switches will fail.

The command with switches I used is as follows:

C:\Program Files\VMware\VMware View\Client\bin\wswc.exe -desktopName "Some Desktop Name" -serverURL https://virtualdesktops -logInAsCurrentUser true

Note that I have highlighted the custom parameters in RED so please change them as required.  Also note that if your virtual desktop’s name has spaces, use the quotes to enclose the name.

Test the command on a desktop with the VMware View Client installed with the switches to ensure that the auto logon works and fire up Group Policy Management Console on a domain controller.  Assuming that you have your desktop computer objects already in an OU (we’re going to apply a GPO to computer objects and not the user), you can proceed with creating a GPO linked to the OU with the desktops:

image

Once the GPO has been created and linked, proceed with editing it and navigate to:

Computer Configuration –> Administrative Templates –> System –> Logon –> Run these programs at user logon

image

Open the Run these programs at user logon‘s settings, click on the Enabled radio button and then click on the Show button:

image

Click on the Add button to open up the Add Item window:

image

Within the Add Item window, add the path to the VMware View Client’s executable and include the switches:

image

Click the OK button to confirm:

image

Continue to click the OK buttons to exit out of the policy settings:

image

Log onto a desktop and test the login:

image

Installing Citrix XenApp 6.5 and adding the server to an existing farm

As with my other “Installing SomeProduct …” posts, there isn’t anything special about the content in this write up and it’s mainly just to show what an install of Citrix XenApp 6.5 looks like.

Download the XenApp 6.5 package and run the Autorun.exe executable:

image

You’re then be presented with a Citrix XenApp window to choose the components you want to install.  Proceed with selecting Install XenApp Server:

image

Continue by selecting Add server roles to choose which roles you would like to install:

image

Choose the appropriate edition that matches the licenses you’ve purchased:

image

Accept the EULA:

image

Choose the components you would like to install:

image

image

You’ll notice that the XenApp installation wizard will warn you that it needs a restart prior to installing the XenApp components because their dependences, Remote Desktop Services and Desktop Experience, needs to be installed first:

image

IIS and other components also be installed:

image

image

image

Once the prerequisites are installed, the wizard will ask you to reboot:

image

image

Upon completing the reboot, you’ll notice that Windows will continue configuring the prerequsites:

image

Once the prerequisites (Windows Server 2008 roles) have been installed and you’ve logged back in, the XenApp wizard will automatically launch to proceed with the installation:

image

Note that because Remote Desktop Services was added and no licensing was installed, you’ll get the warning that pops up about the amount of days before the service will stop working:

image

The XenApp wizard will now install the rest of the prerequisites and XenApp roles:

image

image

image

image

image

Once the installation of XenApp completes, the wizard will now present you with the option of specifying the licensing server:

image

Specify your licensing server:

image

Select the licensing model:

image

Once the licensing information has been entered, the last step is to configure this XenApp server:

image

Since the XenApp server I used for this post was a new server I was going to add to a farm, I choose the second option, Add this erver to an existing server farm:

image

The farm in the environment was using a full SQL server so I choose the second option, Existing Microsoft SQL Server database:

image

Specify the remote database information and choose the appropriate authentication model:

image

Enter the credentials you are going to use as a service account to connect to the database:

image

**Note: for more information about Citrix XenApp 6.5’s database, see one of my previous blog post at: http://terenceluk.blogspot.com/2012/01/citrix-xenapp-65-and-xendesktop-55-sql.html

Make sure you use the Test Connection feature prior to continuing to verify that the service account you used for connecting to the database:

image

image

Configure the rest of the configuration parameters as per your design:

image

image

image

image

image

Note that I prefer to uncheck Add Anonymous users and Add the list of users from the User group and check the Add the Authenticated Users option for Remote Desktop Users:

image

Review the summary page and proceed with the wizard to complete the configuration:

image

image

image

Reboot the XenApp server one last time:

image

image

… and we’re done.