Saturday, October 15, 2011

How to Hide selective drive for XenApp 6 or XenDesktop

There are many ways people go for hiding selective drives and hiding drives. I have tried creating ADM but does not looks to be a viable option .

The "NoDrives" value uses a 32-bit word to define local and network drive visibility for each logical drive in the computer. The lower 26 bits of the 32-bit word correspond to drive letters A through Z. Drives are visible when set to 0 and hidden when set to 1.

There are two registry entry which can make this happen

User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
Value Name: NoDrives
Data Type: REG_DWORD (DWORD Value)

To determine the value, you need to do some little math

The "NoDrives" value uses a 32-bit word to define local and network drive visibility for each logical drive in the computer. The lower 26 bits of the 32-bit word correspond to drive letters A through Z. Drives are visible when set to 0 and hidden when set to 1.

If you are not happy working in Hex, add these decimal numbers to hide the drive(s):

A: 1, B: 2, C: 4, D: 8, E: 16, F: 32, G: 64, H: 128, I: 256, J: 512, K: 1024, L: 2048, M: 4096, N: 8192, O: 16384, P: 32768, Q: 65536, R: 131072, S: 262144, T: 524288, U: 1048576, V: 2097152, W: 4194304, X: 8388608, Y: 16777216, Z: 33554432, ALL: 67108863

For example to hide drive A and drive D, you would add 1 (A) + 8 (D) which means the value should be set to "9".

To disable all the drives set the value to "67108863".

Now say you just want to show H drives to the user and hide rest of them then

All value =67108863 H: = 128 . Just to show H drive =67108863-128=67108735

The value for "NoDrives"= 67108735

To deploy this using GPO you need to do following setting under GPO,

This example is to show all except H: drive on XA box.

image

Saturday, September 24, 2011

How to pre-populate domain name on Desktop Director web page

When you try to access desktop director web page , domain name needs to be typed every time.

image

So in order to pre populate with the domain name open Logon.aspx from following location using  elevated command prompt

image

And made changes at following location

image

And then restart default IIS website

 

image

You will be doing this all on server where you have installed desktop director and then final result will be something like this

image

Monday, September 5, 2011

Citrix Provisioning Server and Active Directory password management

 Most of you know when we provision vDisk using Citrix PVS (Provisioning Services ), PVS should be allowed to manage the machine account password . The reason in nutshell  : vDisk is created using one master image with machine account in domain . Same image is streamed across multiple machine.

How we do this ? This setting is on PVS server setting

image

But problem start when you have following default Domain policy

image 

Problem : When machine try to negotiate password after 30 days because of PVS setting AD does not allow to do so. Result of which machine goes out of password synch. This kicks machine out domain and Virtual desktop got unregistered from Desktop Delivery controller

This policy as per Citrix PVS eDocs and also one more eDocs suggest to set this to "Enabled". So how you would like to tackle this situation.

1.  If above setting is not followed with password age then you can define  password age policy and apply to OU which is meant for Virtual Desktop.  As shown below for 999 days PVS will enjoy managing provisioned machine password.

image

2. Windows following Netlogon service tried to negotiate machine password when it expires. This is stored under

image

3.  If the value is set to "0 " then AD will not allow PVS to negotiate password. Remember this is managed by default  domain controller policy but registry can be overwritten by deploying new registry value. How check this out

image

If this policy is applied on OU containing VDI then even default domain policy for password can be overwritten. Citrix has also release fix which address similar issue but not exactly the same issue CTX130273.

 

Sunday, September 4, 2011

How to disable Printscreen on XA as well as Thin Client

If you would like to disable print screen permanently on XenApp 5.0 /6.0 , this can be done from XA policy as well by creating new registry value as follows:

HKEY_LOCAL_MACHINE -> System -> "CurrentControlSet" -> "Control" -> "KeyboardLayout" create a new binary key called Scancode Map
Value Data will be  :  0000000000000000040000002AE037E0000037E00000540000000000
On linux based thin client WNOS.INI file needs to updated as follows:

1.    xmodmap -e 'keysym Print = anyotherkey'
2.    Comment out the key in /usr/x11r6/lib/x11/xkb/keymap/keycodes

It should be <prsc> = 111 so just put // in front

Following CTX can explain  more about virtual channel

Hope this help

Wednesday, July 27, 2011

Are you ready for Virtualization?


Disclaimer: All views expressed here is mine and my current and past employer not endorse my view.  
Now the buzz word across IT world is Go Green  / Cloud computing /Go virtual /Green Computing. Everyone likes to use this word for various reasons but the million dollar questions 
  1. Is your organization ready for it?
  2. Is this being forced by your management?
  3. Is your support function / Infrastructure ready to take up new challenges?
  4. Corporate users also want to use same slogan (Go Green… etc.) ?
  5. Does solution provider understand your requirement?

We will try to acknowledge  and outline some key points which is required to implement “Go Virtual”. 
Corporate would like to implement “Go Green” mantra. They want to do it because their competitors have implemented it. They implement it because they want to establish capability proposition for their clients/customer “We are at par with latest IT trend”. There are very few who really understand that it is not just the mantra but also a social obligation. By saving electricity and reducing e-waste, IT world will be repaying to society.
To answer 1st question: Are you really ready for this change? This question should be asked to each individual in an IT organization. Go Green bring huge change inside the organization. It does not only bring changes to your support model but as an end user it is required a mind set to accept change.
Answer for 2nd question; 
When management pass the bucks to their colleagues to sing “Go Green ” mantra they should take everyone into confidence. Management should also educate themselves about “Go Green” mantra before they expect their colleagues to follow. Such initiative comes from top or from middle tier. So how does this tier react with such initiative? 
For  example if these initiative comes from middle tier, most of the time it has influence from lower middle technical mindset who want to test few product and showcase their capabilities to their manager. Such sections of people do it 
a) To learn and upgrade their skill for the know reason.
b) Influence by some vested interest to test certain feature. Major drawback with this approach is business direction, as these sections mostly lack such skill. Resulting in the  bad investment. 
If the initiative is business driven then it requires involvement of every layer of the organization, starting from the individual who will be conducting POC to the individual  who would perform TCO . Most of the time such initiative are driven by business goal. Hence this goes through cycle of choosing the right product to right hardware and deploying right solution so that you can see expected TCO. 
In usual world Organization   send out the requirement to multiple vendors offering VDI solution. Vendor perform POC, showcase the capabilities and get management confirmation. Management then compares the available solutions along with the costing. Costing is the other deciding factor for choosing product and in my view it is a correct approach. In my experience, middle tier or lower middle tier always like to go with selective approach for various reason. These reasons can be either their personal interest or personal comfort level. Say for example if I am asked to work on Dell or IBM blade, I may not be   comfortable as I am on HP. Having said I should not tell management as well as management should not take this suggestion for granted. 
To conclude this post:
While choosing VDI solution for your organization we should follow these:
  1. Choose correct VDI solution which suits your requirement. 
  2. Choose correct hardware to implement these VDI solutions.
  3. Training support folks on these technologies are key to make VDI implementation successful.  
  4. Handling end user expectation is other key to success. 
  5. Organization goal above individual goals. 
Hope this read is been useful and help to answer and understand few of your query