Search This Blog

Wednesday, May 29, 2013

Change the text Your Windows desktops and apps

Previously I showed how to remove the text Your Windows desktops and apps on demand - from any PC, Mac, smartphone or tablet from the Citrix web interface.

What if we would like to change the text?

image

Start by copying the file accessplatform_strings.properties from your web interface installation, my default location is "C:\Program Files (x86)\Citrix\Web Interface\5.4.2\languages\accessplatform_strings.properties", to your Citrix IIS location in my example "C:\inetpub\wwwroot\Citrix\XenApp\languages\accessplatform_strings.properties"

image

Then edit the copied file with notepad:

image

Now find the text HorizonTagline=Your Windows desktops and apps on demand - from any PC, Mac, smartphone or tablet.

image

Change the text to what ever you like and save the file.

HorizonTagline=My Text

image

Result:

image

Wednesday, May 22, 2013

CScript Error: Can't find script engine "VBScript"

I have in some situations seen a problem where I suddenly is unable to start a vbscript in an SCCM 2012 OSD task sequence with another account specified.

When the situation occurs I can see this error in the smsts.log:

CScript Error: Can't find script engine "VBScript" for script

image

The problem appears to be caused by a changed registry value HKEY_LOCAL_MACHINE\Software\Microsoft\COM3\REGDBVersion

When REGDBVersion has the value hex:01,00,00 then vbscript's works as expected.

Until now I have seen that VMware tools and Citrix XenApp can change the value breaking the possibility to start vbscript's with another account in the task sequence.

REGDBVersion value after XenApp 6.5 installation hex:f8,01,00,00,00,00,00,00

REGDBVersion value after VMware Tools installation 06,00,00,00,00,00,00,00

One way around the problem is to call the script before installing software that changes this value.

If this is not possible this can be used as a workaround.

Save the existing registry values under the COM3 key, and then change the value of REGDBVersion to the working value.

Now the script can run and afterwards you can restore the saved keys.

Backup:

REG EXPORT HKLM\Software\Microsoft\COM3 %temp%\com.reg /y

image

Set Working value

REG ADD HKLM\Software\Microsoft\COM3 /v REGDBVersion /t REG_BINARY /d 010000 /f

image

Call your script (example)

image

Restore values:

REG IMPORT %temp%\com.reg

image

Friday, May 17, 2013

Quick Access Toolbar and Ribbon customizations

In Office 2013 the default location of Quick Access Toolbar and Ribbon customizations is still saved in to AppData\local folder by default and because of these settings do not roam.

In order for Quick Access Toolbar and Ribbon customizations to follow the roaming profile we can set a GPO.

User Configuration\Administrative Templates\Microsoft Office 2013\Global Options\Customize\Allow roaming of all user customizations

image

Setting this will for example create officeUI files in the AppData\Roaming\Microsoft instead of AppData\Local\Microsoft\Office.

When deploying Office 2013 you can, as an alternative to the GPO, set this in the Microsoft Office Customization Tool.

image

You can find the link for Office 2013 admx files needed in order to create the GPO here: http://larslohmann.blogspot.com/2013/02/admx-files-available.html

Wednesday, May 15, 2013

Protected mode warning

If you disable protected mode you might see warnings like this when starting Internet Explorer Protected mode is turned off for the Internet and restricted sites zones or Protected mode is turned off for the Internet zone.

image

image

One way to disable or hide this warning is to set a registry value.

HKCU\Software\Microsoft\Internet\Explorer\Main\NoProtectedModeBanner set this to the dword value 1.

image

This will remove the warning.

This setting can be imported to the default user settings during your MDT or SCCM Task Sequence as explained in http://larslohmann.blogspot.dk/2013/03/customize-settings-for-all-new-users-on.html.

Monday, May 13, 2013

Pin to Taskbar script

This is a short vbscript to pin programs to the taskbar.

The script can for example be used in a login script.

Set objShell = CreateObject("Shell.Application")

Set oShell = CreateObject("WScript.Shell")

Set ofso = CreateObject("Scripting.FileSystemObject")

 

strFile = "C:\Program Files (x86)\Microsoft Office\Office12\OUTLOOK.EXE"

PinToTaskBar

 

strFile = "C:\Program Files (x86)\Microsoft Office\Office12\WINWORD.EXE"

PinToTaskBar

 

 

sub PinToTaskBar

 

if ofso.fileexists(strFile) then

   Set objFolder = objShell.Namespace(ofso.GetParentFolderName(strFile))

   Set objFolderItem = objFolder.ParseName(ofso.GetFileName(strFile))

   Set colVerbs = objFolderItem.Verbs

   For Each objVerb in colVerbs

      If Replace(objVerb.name, "&", "") = "Pin to Taskbar" Then objVerb.DoIt

   Next

End IF

 

End Sub

Programs pinned to taskbar:

image

Wednesday, May 8, 2013

XenApp 6.5 black screen

On XenApp 6.5 you might see a long delay when reconnecting to a published desktop, and the desktop was locked when disconnected. The user will during the delay just see a black screen:

image

In the event log on the XenApp server you will see an event ID 1009 from the source picadm.

image

I have seen this on XenApp 6.5 servers with hotfix XA650R01W2K8R2X64002 or XA650R01W2K8R2X64090 installed.

For now the only solution I have been able to find is to remove the installed hotfix.

Lets hope this will be fixed in a later hotfix.

UPDATE 04-07-2013

Hotfix Rollup Pack 2 fixes this issue Smiley

Attempts to reconnect to a locked, disconnected session running on a server where Fix #LA1817 is installed might take about two minutes.

[From XA650W2K8R2X64R02][#LA3479]

http://support.citrix.com/article/CTX136248

I can confirm that this is now working as expected.

Monday, May 6, 2013

System Center Updates Publisher 2011 database

 

When using SCUP 2011 it creates a local database in your user profile.

You can verify this by selecting options:

image

And then Advanced as you can se under database file it is placed in the user profile path.

image

It is possible to move the database and share it with other users.

In this example we change the path to an local folder on a management server, but this could be an UNC path.

First start an administrative command prompt and edit the file C:\program Files (x86)\System center Updates publisher 2011\Scup2011.exe.config (This might be on another drive and path)

image

Find the text <setting name="SSCEDataFile" serializeAs="String">

image

Now change the text <value /> to the path and filename you prefer. Here it is C:\SCUPDB\scupdb.sdf

image

Save the file and copy the old file from the profile to the new location. Next time you start System Center updates Publisher you can verify the location again:

image

Wednesday, May 1, 2013

Hide VMware tools tray icon

In some situations I want to hide the tray icon from VMware Tools.

 

image

The way I use to remove / hide the icon is to set the registry entry:

HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\VMware Tools\ShowTray and set this to 0 (REG_DWORD).

image

You can set this in a SCCM/MDT task sequence by using the command:

reg.exe ADD "HKLM\Software\VMware, Inc.\VMware Tools" /v ShowTray /t REG_DWORD /d 0 /f