Tuesday, 16 April 2013

Citrix Client cannot save to the local network


When you first connect to shared drives on a Citrix session you will get a security warning like the one below



If someone has clicked read only and ticked the do not ask again box.

then to allow read/write access again

For each target environment that is accessed a unique registry key is made in registry with the name
HKCU\SOFTWARE\Citrix\ICA Client\Client Selective Trust\{GUID}. 
It seems that the {GUID} is generated during runtime and (therefore) cannot be predicted. You can find what GUID belongs to what connection by reading the value HKCU\SOFTWARE\Citrix\ICA Client\Client Selective Trust\{GUID}\RegionName\@.
This value contains the name of the environment.

Preventing the message
The message van be configured per resource type, where each resource type is a subkey of ICA Client\Client Selective Trust\{GUID}IcaAuthorizationDecision (no \ after the GUID!).
Resource typeSubkey
Client drivesFileSecurityPermission
Microphones and webcamsMicrophoneAndWebcamSecurityPermission
PDA devicesPdaSecurityPermission
USB and other devicesScannerAndDigitalCameraSecurityPermission
The access level can be set in the default (@) value where the number represents an access level
ValueDescription
0No access
1Read access
2Full access
3Prompt the user for access
The access level can be set per accessed environment (per GUID) or per region. By configuring the access level on the HKEY_LOCAL_MACHINE (HKLM) hive instead on the HKEY_CURRENT_USER (HKCU) hive the setting is inherited by all users.
If you can to configure the access permission per region you need to change the value of IsIsmDeferalEnabled to true and set the access level per resource type.
The regions that can be configured in HKLM match the regions that can be found (and configured) in Internet Explorer.
ZoneSubkey
InternetoidInternetRegion
Local IntranetoidIntranetRegion
Trusted sitesoidTrustedSitesRegion
Restricted sitesoidRestrictedSitesRegion
Keep in mind that if you configure the settings on a x64 operating system the keys are stored inHKLM\SOFTWARE\Wow6432Node\Citrix\ICA Client\Client Selective Trust.

Thursday, 14 February 2013

ActiveSync will not connect to Exchange on Phone/Tablet

If you are not able to connect to your Exchange email via a mobile phone/tablet (I've seen this on Android and Windows phone), then the following should allow connection



  • Open the Active Directory Users and Computers and go to “View” and select “Advanced Features”
  • Find the user who is not able to use the ActiveSync, and double-click him, and go to “Security” tab then click “Advanced"
  • Then check the check-box “Include inheritable permissions from this object’s parent” and click OK to close all the other windows
  • After this, the user should be able to connect to the server using ActiveSync on the mobile device

Tuesday, 12 February 2013

VMware VMs appear unexpectedly on two Datastores


The most common reason for this that I have found is that I have mounted an ISO to a virtual machine (usually as CD drive). My ISO's reside on a vmfs volume.

Disconnect the CD drive by right clicking on the relevant VM and clicking on edit settings. You should see the following




Using Exchange Powershell to report on Mailbox Sizes


Here are some useful Exchange 2010 Powershell commands I use regularly to report on where users are filling up our Exchange Databases. 

(note 'MBX-SERVER' is your mailbox server name with the ' removed, "username" is the username and the quotes remain)

Database Size
Get-MailboxDatabase -Status | select name,databasesize,availablenewmailboxspace


Mailbox Size
Get-MailboxStatistics -Server 'MBX-SERVER' | Select DisplayName, ItemCount, TotalItemSize | Sort-Object TotalItemSize -Descending | Export-CSV C:\MailSize.csv
Drops to the csv on the C drive


Show top ten Mailbox folders with most Items on the Mailbox Server
Get-Mailbox –Server 'MBX-SERVER' -ResultSize Unlimited | Get-MailboxFolderStatistics | Sort-Object ItemsInFolder –Descending | Select-Object -First 10 | FT Identity,ItemsInFolder,FolderSize –Wrap


Top Ten folders in one users Mailbox by size
Get-Mailbox -Identity "username" -ResultSize Unlimited | Get-MailboxFolderStatistics -FolderScope All | Sort-Object FolderSize -Descending | Select-Object -First 10 | FT Identity,FolderSize,ItemsInFolder –wrap