Wednesday, April 21, 2010

Windows 7 – Always show icons in the System Tray

Windows 7 changes the default functionality of the System Tray to hide icons created there by default.  Instead, users have to click a strange up arrow:

image

It can be fixed per user and per application by clicking Customise, and changing icons to “Show icon and notification”.

image

There is also a checkbox for “Always show all icons and notifications on the taskbar” – again, this is per user.

To stop this behaviour for all users you can force all System Tray icons to be visible on the Taskbar in regedit.  Open Regedit and find:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorerimage

Create a new DWORD value called EnableAutoTray.  Leave its value as 0 (zero).  Log off and log back on or reboot and regardless of what you have previously set, all icons are now visible.  Setting it to 1 will set it back to default for everyone, and removing the key lets you define it per user by putting it in HKCU.

image 

 

Sunday, April 11, 2010

Windows 7 overtakes Windows XP?

Now I know that Windows 7 already makes Vista look like an unpopular and almost forgotten relation who hasn’t come round for Christmas for years, but I was surprised to see on my stats for the last month (and I had quite a lot of hits this month, so these aren’t mostly me or anything) that Windows 7 had overtaken the aged and wrinkly Windows XP as the biggest Windows OS among my visitors.

Anyway, I’m quite glad to see this sudden and long overdue demise of Windows XP, since I had started to think in the Vista years that I would be seeing it hanging around more or less forever. 

In non Windows operating systems, Linux came second with 5%, followed by Mac on 2.2%.  I had one iPhone visitor.  Crazy. 

image

Wednesday, April 7, 2010

Scripting an uninstall of any Windows program

Something I’ve had to figure out for a script to uninstall any version of the Citrix client without prompting the user is to find how to uninstall any specific program.

This is saved in the registry for every installed program and the string for a program from one PC should work on any PC – providing its the same version of the program. 

Open Regedit and go to this location:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\

Below this location are lots of folders with GUID names – press CTRL-F and type something from the name of the product you need the uninstall line for.  It should jump to the right folder (check it has!) and then look for the value “UninstallString”.  The contents of this are what you are after.  Mostly this will start msiexec.exe…

You might well want to edit it before you include it in a script – for instance on an MsiExec.exe command adding the switches “REBOOT=ReallySuppress /qb!-“ will suppress a reboot and make it completely non-interactive, so the user just sees a brief status bar as it uninstalls.  Without it, it might prompt for uninstall or a reboot.

image

Friday, April 2, 2010

Installing XenApp 6

It seems like a long wait (because it’s been a long wait) but finally the wait for XenApp 6 is over.  This is something I’ve been waiting for after forming a low opinion of XenApp 5 in benchmarking and I’m looking forward to seeing what a more developed version of XenApp is like, especially running on Windows Server 2008 R2 (or “Windows 7 Server” as they really should have called it)

Downloaded the massive 4.8gb ISO of XenApp 6, so its time to install a test farm.

  • Install Windows 2008 R2, with .NET 3.5 sp1
  • Logon to the server again but NOT USING REMOTE DESKTOP!  Use VNC, use ILO, plug a monitor in, just don’t use Terminal Services.  It won’t work.
  • Extract the XenApp 6 ISO to a folder on the network with 7zip
  • Run autorun.exe (as administrator)
  • Click Install XenApp Server

clip_image002

  • Click Add Server Roles

clip_image004

  • Select your XenApp edition.  In my case, its Enterprise. 

clip_image006

  • Choose your server roles.  You will need at least a license server as well, but if you have a spare machine (a virtual is fine) its a good role to have a dedicated server for.  Remember it will have to be Windows Server 2008 R2 as well if its going to be serving your Terminal Services CALs.

clip_image008

  • Choose your server roles.  XenApp Server is the only required one for your first server, but the XenApp Management role might be a good idea for one of your servers so you can host the app on the farm.  You can also install the XenApp Management tools to your PC, which is a good idea for when there’s a problem with your farm that stops you launching apps!  I’ve also selected the EdgeSight Agent as well since I’m planning to deploy an EdgeSight server later on.

clip_image010

clip_image012

  • That’s a lot of Visual C++ Redistributables.  No Java pre-req though, thank God.  Click Install to carry on, agree to any UAC prompts and log back in after reboots as needed.  If you have not installed the Remote Desktop roles before install you’ll need to restart it manually when it tells you the restart was pending.  After reboot, run XenApp Server Role Manager to carry on.

image

clip_image014

clip_image016

clip_image018

  • After install, click Finish.  Select the Role Manager from the Start Menu if its not launched and click Configure to set up your farm.

clip_image020

The server should now be ready to join to a farm or create a new one.  After this it will need licensing – so the licensing components seen above need installing somewhere and some Citrix licenses adding.  You will need Terminal Services CALs within 120 days as well.

The web interface install is the other requirement for actually using your farm.  Older versions work fine with XenApp 6 (at least the XenApp 5 ones do), but the web interface 5.3 ships new with XenApp 6.  All this can be installed on a single server but its best to separate the different functions if you can.

    Thursday, April 1, 2010

    Citrix Web Client 12.0 - “A remote application is trying to access files on your computer”…

    We’ve had some fun with the new v12.0 XenApp Client – by default each user on web interface sites is asked when they launch applications that try to use the local drives.  The message below pops up, which is nicely redesigned since the previous versions.

    image

    If the user clicks Yes, access to resources such as local drive mappings is then enabled (read only if the checkbox was clicked).  Otherwise, you can get errors such as “The folder ‘c:\*.*’ isn’t accessible”.

    clip_image002

    If you want to avoid errors such as this, decide whether you want applications to have access to local drives (different for everyone I’m sure, but you probably do), create a text file called “webica.ini” at these locations automatically at logon:

    Windows Vista and 7:  C:\Users\%USERNAME%\AppData\Roaming\ICAClient

    Window XP and 2000: C:\Documents and Settings\%USERNAME%\Application Data\ICAClient

    The file contents for allow access and never ask is:

    [Access]
    GlobalSecurityAccess=405

    Wednesday, March 17, 2010

    Internet Explorer 9 Beta (sorry, “Platform Preview”)

    Microsoft started down the long and painful road to delivering another version of IE, with hopefully less of a jump in system requirements and sites and apps that no longer work than was the case with IE8.

    I’d still be an IE7 man if it wasn’t for Windows 7 leaving me no choice to be honest.

    The Preview version (they don’t seem to want to use the “beta” word so I assume this is very early stuff indeed) is available for download from here:

    http://ie.microsoft.com/testdrive/

    Apparently a new Preview will be available every few weeks.  It requires Windows 7 or Vista SP2 and installs alongside IE8.  After testing it on a virtual with no issues I’ve installed it on my main Windows 7 PC.  It wasn’t always stable itself but hasn’t caused any issues with my old browser yet.

    image

    What you get is a very stripped down browser with a funky home page packed with “useful” graphs on its performance that appear to mainly prove how bad IE8 is. 

    image

    It does not even have an address bar – you can go to an address by clicking Page > Open though.  You can also set its home page by editing the shortcut it creates in the Start Menu and adding an address after the file path:

    image

    There are few other features available in the menus – report an issue to Microsoft, run IE Diagnostics and the ability to force different IE Document modes – IE5, IE7, IE8 and IE9. 

    What happened to IE6?

    image

    These document modes do certainly seem to change the rendering engine – using IE5 mode on the UK MSN page messed it up completely!  It appears to use IE7 mode quite often unless forced to do otherwise – this is because it is using IE8’s compatibility list.  You can override this on a page and force IE9 mode though.

    I ran the SunSpider Javascript Benchmark test on a Windows 7 virtual equipped with IE8, IE9 preview (v1.9.7745.6019).  As Microsoft predicted, IE8 got thoroughly taken to the cleaners.  Results below – remember bigger numbers are worse…

    Browser Total time (ms)
       
    IE8 6828.0
    Firefox 3.6 2366.4
    IE9 Preview 1.9.7745.6019 1071.8
    Google Chrome 4.0.249.89 1021.6

    I tried this on IE6 running on a busy Citrix server and it came up with an unimpressive score of 38119.8ms, but that wasn’t really a fair test.

    Benchmarks are of course only an indication of what browser experience might be like but these numbers are at least encouraging that Microsoft might actually be closing the criminal gap in general performance between IE8 and Firefox, and especially Chrome.  If it doesn’t have the shocking website compatibility issues that I experienced when I went to IE8 (which are to be fair mostly in the past – though mainly I suspect by lots of people fixing their websites) that would be nice too.   IE running at Chrome speed would make me a very happy user.  Shame I don’t quite believe it will happen.

    Tuesday, March 16, 2010

    Very useful remote support app – PC Audit

    A tool that went past on 4sysops recently was a very good little app for helping with remote support of PCs – especially useful in fact for the dreaded “why is my computer running slowly” question off a family member. 

    PC Audit from MSI Utilities is a tiny application that can be executed without any installation (more apps should work this way…) and generates a text file which contains a host of useful information including motherboard type, what memory is installed (and how many slots are free!), disk size and space, the OS and service pack, all installed hotfixes and programs, everything that runs on startup and everything that was running when the report was generated.  Phew. 

    I used this on my parent’s PC and could see straight away that they had too little RAM and (far) too many programs starting up each time they booted – the usual suspects of Acrobat, graphics card junk, PowerDVD, HP updater, etc.  And I could see their XP product key oddly. 

    Anyway, if you get someone ask you to troubleshoot a slow machine, copy and paste these instructions…

    • Go to this website: http://www.misutilities.com/free-pc-audit/index.html
    • Click download, and Run the file it downloads
    • It should open a program and say “Scanning ... Please wait”
    • When finished it should display lots of information about the PC. 
    • Click File > Save As and save the text file somewhere temporary
    • Email me the text file – you can then delete it.