Thursday, 27 March 2008

NZ Daylight Savings Time updates for XP and Vista; SP1 for Vista

  • The NZDST update patch for Windows XP is KB933360. It is categorised as an Update Rollup.
  • The NZDST update patch for Windows Vista is KB942763. It is categorised as an Update Rollup.

The patches are required because of 2007 changes to NZ Daylight Saving Time which now commences on the last Sunday of September and ends on the first Sunday of April.

These patches will not be automatically approved for installation if the Update Rollups category is not set for auto approval. They will not be available for detection on any client if the Update Rollups category is not set for synchronisation on the WSUS server. This has caught me unawares, finding that the WSUS server was not set to download this category of update, let alone approve it for the clients. As Update Rollups is not a category I had considered making available to clients before, it was not really a surprise in retrospect that all my handful of Vista clients were showing the wrong time since 16th March.

SP1 for Vista is now out. It can be downloaded standalone for individual installation on clients and can also be imported manually into WSUS. It will become automatically synchronisable via WSUS at some later date, according to Microsoft.

Now that we have SP1 available I hope we will soon see Vista on the TELA laptop programme.

Friday, 22 February 2008

Windows Live Mail is very flaky!

Sorry but there is no other way to write that. I have just had it up to here with the flakiness of WLM compared to Outlook Express and Outlook. Especially on IMAP accounts. WLM's support even of ordinary IMAP is patience-testing enough before you try to set up access to Gmail IMAP and get a further increase in the voluminous error messages that every send/receive operation generates.

When I first saw WLM I liked it a lot. The interface design is very modern, it being designed for Vista. But beneath that appealing appearance is a product that is flakier than its predecessor. WLM went through a public beta program that I participated in. It is quite the norm to get lots of error messages when downloading mail, particularly on IMAP. Yet MS could make IMAP work on Outlook and Outlook Express. Even Gmail works just fine on those platforms.

Next gripe: neither of Outlook 2007 or WLM can do RSS either. Apparently there is some component that has not installed itself properly and none of the feeds will automatically update. Thunderbird can do everything and doesn't throw the errors like WLM can. Out it goes!

Thursday, 21 February 2008

Using Loopback Policy to set a per-location default printer

Last year I talked briefly about how loopback policy works. This is the system that Microsoft has built into Group Policy to enable a user policy to be applied to a computer that is dependent on the OU that the computer's account is stored in. This is a great system because it enables a policy to be applied to a user that can be targeted by according to the physical computer that they are logging onto. One obvious example of this is to set a default printer for a user that changes depending on where the nearest printer to the room they are in, is located. Because the setting is set for each user individually, it can't be done in an ordinary GPO, because the computer account does not set user policy settings; these are set by the directory location of the user account.

Previously to set the default printer, we would have a mandatory profile with the printer default defined in it. The best we could do with this is to define that users in one particular part of the school would have a particular mandatory profile for the nearest printer to their home room. But if that user or users went to another part of the site, their default printer could not change to reflect the fact that they had moved, so this system has obvious limitations.

One important issue to deal with when using loopback policy is the way in which it becomes retroactive on other GPOs in the same branch of the directory tree. When I did my MOC training classes at the local polytech, all the material showed the use of the same OUs to store both computer and user accounts. Naturally this is the method that I followed to set up our school's directory tree for users and computers. However this gets messy when a loopback policy is applied to an OU because the user policy is combined with other user policies and these policies get applied to every user, not just the users they were targeted at. For example, in a school, commonly pupils are going to get a locked down desktop with a restricted Start menu and limits on local hard drives, say.  A teacher or technician on the other hand might not have the same restrictions and they should have a full Start menu and be able to access all drives. If your user and computer accounts are in the same branch of the GPO tree then applying a loopback policy to a computer in that branch will also result in the rest of the user GPOs applying to every user who logs in to a computer in the branch, regardless of the user accounts being in different OUs or some of them (not all) being in different branches. The fix for this is to put computer and user accounts into different OUs that are in different branches and then the loopback policy will only have effect on specific user GPOs.

Setting the default printer itself is easy, just two lines of VBScript code in a logon script:

Set objNetwork = CreateObject("WScript.Network")
objNetwork.SetDefaultPrinter "\\DC02\18_Colour_Printer_4050_Vista"

One thing to watch out for is that the default setting will not show up in your printer list (i.e. a checkmark next to a named printer). This fooled me in the past when I did this in a login script because it looked like the script wasn't working. This time around I tested it out and it does indeed work, but the lack of visual confirmation in the user interface is offputting. There are several ways of setting the default printer including registry settings but the login script is probably the simplest to apply across a site using GPOs and thereby leveraging the advantages of centralised administration with the server tools.

UPDATE: If you are using printer deployment policy on Windows Server 2003 R2 you may find your default printer connection script fails with a message saying the printer cannot be found. The solution I have found to this is to insert a new second line in the above script so that in this example it reads:

Set objNetwork = CreateObject("WScript.Network")

objNetwork.AddWindowsPrinterConnection "\\DC02\18_Colour_Printer_4050_Vista"

objNetwork.SetDefaultPrinter "\\DC02\18_Colour_Printer_4050_Vista"