formats

Multiple Desktop Sessions Citrix XenApp 6.5 and WebInterface 5.4

When a user accesses a published Citrix Desktop via web interface, there is a chance they launch two desktops even though the allowed limit is set to one. Due to the user double clicking the published desktop icon quickly they may bypass the limit whilst Citrix Xenapp catches up.

Users rapidly clicking on published application icons can initiate multiple sessions prior to the application instance counter getting updated.
To address this problem, you can configure resource icons to become inactive for a specific period of time after the user has clicked them. During this time, further clicks are ignored and the cursor changes to indicate that the icon is no longer clickable, preventing the user from starting any further instances of the resource.

To use this feature you must modify the Citrix Web Interface configuration file (WebInterface.conf) manually. This feature can not be set up using the Citrix Web Interface Management Console.

Note: Prior making any modifications to the WebInterface.conf file manually, make sure to have the Citrix Web Interface Management Console closed.

Locate the WebInteface.conf file in this directory \Inetpub\wwwroot\Citrix\SiteName\conf
Open file with Notepad and search for the following entry:
#MultiLaunchTimeout=[Number of Seconds (2)]
Remove (#) sign and [Number of Seconds (2)]
Enter the number of seconds desired.
The entry should look like this:
For example: MultiLaunchTimeout=2
Save the file and test.
The value specifies the time for which resource icons are inactive following the initial click by the user to start the resource.
I would use a value of at least 10 seconds.

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

Exchange 2010 Activesync on users in Administrators, inheritance of security

A little background: Exchange 2010 adds a passel of schema and security extensions. I am not going to discuss the schema extensions here but focus on the security additions. The security that is of interest here is all at the domain level – on the domain object. Two new security groups are added for Exchange 2010: ‘Exchange Trusted Subsystem’ and ‘Exchange Windows Permissions’ each with 17 aces (if I count correctly). Additional aces are also added for the ‘Exchange Servers’ group. The important Aces here are:
•Allow create/delete rights for msExchangeActiveSyncDevices child objects to a user object,
•Allow create/delete rights for msExchangeActiveSyncDevice child objects to the above msExchangeActiveSyncDevices object, and
•Read/ write all properties of these new objects.

I am not privy to why Microsoft does things but prior to Exchange 2010 there was no structure to contain ActiveSync device information other than the user account or the mailbox itself. With the msExchangeActiveSyncDevices object acting as a container a user can now have multiple msExchangeActiveSyncDevice objects for multiple Active Sync devices. I.e. a Phone and an iPad. Forward thinking. Very good Microsoft. Oops, I said I wasn’t going to discuss schema extensions.

So why does any of this matter? Here is why. The security that allows Exchange to create, delete, and use these new objects is all inherited from the Domain object. If it does not inherit to a user object, Exchange cannot create the new the objects. The result is simple. Move the user’s mailbox to an Exchange 2010 server and their phone stops syncing.

There can be various reasons the security is not inherited. On one extreme, you could be in a hosted environment running some variant of Microsoft Provisioning Services (MPS). On the other, a network admin that is no longer there was too clever by half and blocked security on OU’s for reasons no one remembers. Whatever the case, you can allow the security to inherit and then block it again if there is good reason. In any case, this represents a relatively permanent solution.

Finally to the issue I have seen multiple times already. There is this process that lives in relative obscurity and has been running on DC’s since the NT5 Betas—the Security Descriptor Propagator (SDPROP). It actually does the inheritance of security from parent to child objects in Active Directory. On the PDC role holder it has an additional function — it protects the security on security principles that have elevated rights. ‘Elevated Rights’ is defined as the user being a member of one of a list of built-in groups. These groups are defined as ‘Protected Groups’. Any ‘User’ that is a member of a ‘Protected Group’ has its security overwritten by the security descriptor on the AdminSDHolder object in the ‘System’ container by SDPROP and its ‘adminCount’ attribute set to ‘1’. Since inheritance is blocked on the AdminSDHolder’s security descriptor, inheritance is also blocked on the user object. This happens every time SDPROP runs on the PDC role holder. By default, that is once an hour.

The list of Protected Groups has varied from Windows 2000 RTM till now. The groups in 2008 R2 are:
•Account Operators,
•Administrators,
•Backup Operators,
•Domain Admins,
•Domain Controllers,
•Enterprise Admins,
•Print Operators,
•Read-Only Domain Controllers,
•Replicator,
•Schema Admins, and
•Server Operators.

If a user with a phone is (or has ever been) in any of these groups, directly or transitively through group nesting, even via distribution group, their phone will not work with their mailbox on an Exchange 2010 MBX role server.

The solution is obvious. Give people that need administrative rights, administrative accounts and tie their phone to a normal user account. This is best practice anyway.

If you are determined to not do this, you have several options:
•Remove the users from the groups that are causing the issue. This also requires you clear the ‘adminCount’ attribute in their account since SDPROP will not clear it for you. Then enable inheritance.

•Alter the Security on the AdminSDHolder object security descriptor by adding the new Exchange security to it. Since the aces added in Exchange 2010 are numerous, this can be a bit tedious but it will work if you get it right. Don’t forget to maintain it in the future.

•Change the behavior of SDPROP. Only four groups were protected in Windows 2000 RTM. As the list of Groups has expanded, Microsoft has provided a vehicle to modify the list. This is done by setting the dsHeuristics attribute of the Directory Service object in the configuration container. Using this attribute, you can selectively exclude Account Operators, Print Operators, Server Operators, or Backup Operators from the list of Protected Groups. Realize when you do this you are weakening the security of your forest.

•Alter the Security on the AdminSDHolder object security descriptor by allowing inheritance. Again, realize when you do this you are weakening the security of your forest.

Details of these options are discussed here:

http://support.microsoft.com/kb/817433

If you want to be proactive before you start moving mailboxes, you can search for all users in you forest that have an ‘adminCount’ of ‘1’. Lots of ways to do this. Here is an Ldifde example:

ldifde -f AdminUsers.txt -d dc= -r “(&(objectcategory=person)(objectclass=user)(admincount=1))” -l samAccountName

- or by powershell with output to file.

import-module activedirectory
get-aduser -ldapfilter “(objectcategory=person)(admincount=1)” > output.txt

Source: http://blog.pennic.com/ @ Nick

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

Using 3rd Party SFP modules in Cisco Devices

All SFP modules contain in their EEPROM, a Serial Number, Vendor Name & ID, Security code and a CRC. The Switch checks this information, if it can’t verify it might give messages like the following:

%PHY-4-UNSUPPORTED_TRANSCEIVER: Unsupported transceiver found in Gi1/0/1
%GBIC_SECURITY_CRYPT-4-VN_DATA_CRC_ERROR: GBIC in port 65538 has bad crc

There are two undocumented cisco commands to get 3rd party SFP modules to work:

switch(config)# service unsupported-transceiver
switch(config)# no errdisable detect cause gbic-invalid

 
Tags:
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

Citrix Webinterface 5.x Slow first load

After restarting IIS, or rebooting the Web Interface server, it takes up to one minute to get the Welcome page for the first user.
This issue is caused by a CRL check sent to Verisign. If the Web Interface server cannot access the internet, the CRL check fails and times out.

Follow CTX117273 to fix this

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

Internet Explorer tuning tips

Thomas has written some tuning tips for Internet Explorer on Terminalservers / Citrix

http://www.thomaskoetzing.de/index.php?option=com_content&task=view&id=351&Itemid=254

1. Disable the browser tab grow by setting it to “0″ – Saves memory
Path: User Configuration\Administrative Templates\Windows Components\Internet Explorer
Set tab process grow <- Set to 0

2. Disable all unneeded browser add-ons – Saves memory and performance
Path: User Configuration\Administrative Templates\Windows Components\Internet Explorer\Security Features\Add-On Management
Add-on List <- Add GUID from Add-on and set to “0″
How to find add-On GUID: IE | Extras | Add-On Management | Select Add-On | Click “More Information”

3. Disable browser Accelerators – Saves Memory
Path: User Configuration\Administrative Templates\Windows Components\Internet Explorer\Accelerators
Turn off Accelerators <- Enable

4. Disable Suggested Sites – Saves memory and performance
Path: User Configuration\Administrative Templates\Windows Components\Internet Explorer
Turn on Suggested Sites <- Disable

5. Disable InPrivate browsing – Helps with user profiles
Path: User Configuration\Administrative Templates\Windows Components\Internet Explorer\InPrivate
Turn off InPrivate Browsing <- Enable

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

Veeam backup, consolidate helper snapshot and old snapshot files not displayed in GUI

we ran into a problem where vmware vcenter reported that there should be noe snapshots left on the VM.
When checking the VMFS Lun, it where almost 0,9TB overcomitted storage. Browsing the LUN showed alot of snapshot files left behind by Veeam.

If you try to create a new snapshot that you calls “TEST”, and checks the Snapshot manager you will se two snapshots. “Consolidate Helper –0” as active snapshot + my own created snapshot: “test”
when trying to use the “delete all” i got a message “Unable to access file since it is locked”

We found that Veeam proxy attaches the disks as independend too it self when performing the job, but if the veeam backup proxy looses connectivity to the VM it never detaches the disks..
Power off the veeam proxy, detach the disks that points to the vm with problem (be careful to not select “delete from disk”) and power it back on again.

You can now create a new dummy snapshot for the VM with problems, and perform a “Delete All” to remove all the old snapshot files without any downtime

 
Tags: , , ,
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

Monitor Vmware snapshot removal

removing an old snapshot can take some time.
the GUI will in most cases just stop at 95% and it may seem like it is stuck.

SSH to the Vmware host, (ESX) and browse the /vmsfs/volumes to the store where your vm is located.
perform the following commando watch “ls -oghut –full-time *.vmdk”

As the screen refreshes, you should see changes happening. Sometimes it will appear that nothing may change for quite a while, so don’t be alarmed. What you should ultimately see is the files with “delta” in them disappearing, as they are merged into the virtual disks. I will often size the putty screen to fit the listing, and then come back later and check on it. If you have some blank lines at the bottom of the window, then things are moving along

 
Tags: , ,
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

IIS 7 and Citrix Webinterface slow logon / first time usage

Ever notice that the first login to the web interface in the morning takes quite some time? This is because the citrix application pool in IIS is, by default, set to recycle nightly at 02:00. After the recycle the web-interface is rebuilt causing a delay to the first user to attempt to log in.

This delay can result in users logging tickets for a slow login process. For this reason I like to disable this value where I can.

if (!(get-module | where {$_.name -eq “webadministration”})){

if (!(get-module -listavailable | where {$_.name -eq “webadministration”})){
write-error “WebAdministration snapin not available, failing”
break}

#this is needed as the module is seen as a script in some cases
set-executionpolicy unrestricted -force

#add the module
write-host “adding IIS Powershell Module”
import-module webadministration
}#end if

$CitrixPool = get-childitem “IIS:\AppPools” | where {$_.name -eq “CitrixWebInterface5.4.0AppPool”}

$schedulePath = $CitrixPool.ItemXPath + “/recycling/periodicRestart”

$count = $CitrixPool.recycling.periodicRestart.schedule.Collection.Count

#remove scheduled time(s)
Do {
Remove-WebconfigurationProperty $schedulePath -Name schedule.collection -AtIndex ($count – 1) -Force
$count–
}

Until ($count -eq “0″)

Please note, this will set your powershell execution policy to unrestricted, this is a side affect of the WebAdministration calling a script. To revert at the end of the script, run the following command after utilizing this script “set-executionpolicy restricted”

source: http://andrewmorgan.ie

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

XenServer 6.0.2 No management Interface Avaliable but able to ping last known old IP address

We recently had a HD controller failure on one of our blades.
HP sent out the technician and quickly fixed the problem by changing the main motherboard.

After the server was booted up, we got the message no management interfaces is avaliable but where still able to ping the server on the old Ip adress.
after trying Xe toolstack-restart and emergency network reset i found the solution on http://e-rave.nl

Before continuing: Your local storage will be GONE after this, you can create new one afterwards, so before continuing, backup your data!!!!

Back to the “dead” server. I removed it from the pool by logging into the current pool master and typed:
xe host-list , note the UUID of your dead server and use the command xe-host-forget uuid=uuid_of_old_server

This might take some time but be patient, after the host is removed from the pool the local SR`s will still be present
Find the dead SR`s by using xe sr-list

Use the uuid of the ones listed as
(It’s always the SR’s with host “”, so remove those with:
xe sr-forget uuid=28006370-23ab-9975-e33c-7f06a1b88516
xe sr-forget uuid=f6bf51a8-26b7-4c82-b4f2-8be70ca7263b
xe sr-forget uuid=b4adcc4f-86c3-8cba-2e76-44ffe4f24805

Now, our pool doesn’t have a clue about the “dead” server, it’s removed from it, part 1 done. Now we still have our “dead” server that THINKS he’s part of the pool, but shouldn’t. So go to the console of your “dead” server and follow the next few steps.

Let’s reset the state.db first with: mv /var/xapi/state.db /var/xapi/state.db_old
Now tell the server to transition into a master with: xe pool-emergency-transition-to-master
Let it scan it’s local pif’s: xe pif-scan host-uuid=328dbe1c-4b63-4843-b8b3-40ad30acf3db
And Check the pif list: xe pif-list

Now run “xsconsole” and you should be able to configure a network interface as management interface.
Return to your XenCenter and add the server to it.

 
Tags: , , ,
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

Outlook Clients Unable to Connect to Exchange 2010 After Client Access Server Role Moved

Outlook clients may receive an error when they try to connect to mailboxes after the Client Access server role is moved between two Exchange Server 2010 servers.

Cannot start Microsoft Office Outlook. Unable to open the Outlook window. The set of folders could not be opened. The server is not available. Contact your administrator if this condition persists.
Unlike the previous versions of Exchange in Exchange Server 2010 all client communications, including MAPI clients, connect to the RPC Client Access service running on the Client Access server role. Thanks to the componentized server role architecture of Exchange Server 2010 it is possible to move this role between servers to suit the needs of the organization.

For example, an organization may deploy Exchange Server 2010 on a single server, and then later scale that out to separate the Client Access server role to a different server.

Each mailbox database in the organization is associated with an RPC Client Access service in the same AD Site when it is first created. This association is not dynamic. If the Client Access server role is removed from the single Exchange server and deployed to a new server, all of the existing mailbox databases are no longer associated with a valid RPC Client Access service name.

The association can be seen on the mailbox database attributes by running this command in the Exchange Management Shell.
[PS] C:\>Get-MailboxDatabase | fl name,*rpc*

If the Client Access server role was moved from ex1.domain.local to ex2.domain.local, you can associate the mailbox database with the new RPC Client Access service by running this command.

[PS] C:\>Set-MailboxDatabase -Identity “Mailbox Database 0447493325″ -RpcClientAccessServer ex2.domain.local
You can perform this action for all mailbox databases on the server by running this command.
[PS] C:\>Get-MailboxDatabase -Server ex1.domain.local | Set-MailboxDatabase -RpcClientAccessServer

source: Paul Cunningham @ Exchangeserverpro

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments