$theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like
On a Citrix XenApp 5 environment a user reported that he was unable to start a Full Screen session on a Dual Monitor Configuration.
He received this error message:
Citrix has a KB Article: “How to Allow More Memory for Session Graphics on Windows Server 2003” that explains exactly how we can solve this.
We need to change the MaxLVBMem registry value and we can use the Excel Sheet from the KB Article to calculate the proper value.
Please don’t set this value too high because a higher value means you will restrict other kernel memory pools.
You also need to deny the SYSTEM account the SetValue permission on the HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management key to prevent the Citrix IMA service from overwriting the new value.
So I wrote a small PowerShell script to change the permission and set the value:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | $keyName = "SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\icawd\thin16" $valueName = "MaxLVBMem" # Calculate your value! http://support.citrix.com/article/CTX114497 [int]$value = 0xc00000 # Set Identity to SYSTEM via it's Well Known SID [System.Security.Principal.SecurityIdentifier]$ident = "S-1-5-18" # Open Registry Key (with Write Permissions) $regKey = Get-Item "HKLM:" $regKey = $regKey.OpenSubKey($keyName, $true) # Fetch Existing permissions $acl = $regKey.GetAccessControl() # Construct a new Ace $rights = [Enum]::Parse([Security.AccessControl.RegistryRights], "SetValue") $deny = [Enum]::Parse([Security.AccessControl.AccessControlType], "Deny") $rule = New-Object Security.AccessControl.RegistryAccessRule($ident, $rights, $deny) # Add the new Ace to the Acl $acl.AddAccessRule($rule) # Apply the new Acl to the Registry key: $regKey.SetAccessControl($acl) # Now set the required Value $regKey.SetValue($valueName, $value) # Close the key $regKey.Close() |
One Response for "PowerShell Script to raise Citrix Video Memory"
[…] Dit blogartikel was vermeld op Twitter door John Carey, Remko Weijnen. Remko Weijnen heeft gezegd: Blogged: #PowerShell script to raise Video Memory on #Citrix Servers http://bit.ly/fObS3F […]
Leave a reply