August, 2007

  • Michael Niehaus' Windows and Office deployment ramblings

    Where do we hang out (virtually)?

    • 1 Comments

    Desktop deployment is a fairly broad topic, covering various products, tools, processes, etc.  We try to cover as much as we can in the Business Desktop Deployment solution accelerator (http://www.microsoft.com/bdd), on the TechNet Desktop Deployment TechCenter (http://www.microsoft.com/desktopdeployment), at conferences like TechEd, Microsoft Management Summit, and IT Forum.  But most of that is one way: Microsoft providing information to the IT Pros. 

    We also try to stay involved in deployment communities, probably not as much as we'd like, but we try our best.  The places that you are likely to see me online:

    The MSSMS list probably gets most of my attention, for one important reason: it's delivered right into my Outlook inbox and I can reply with no special effort required.  Visiting the others requires extra effort.  (Yes, the others are available via RSS subscriptions, but they have some significant limitations, e.g. not providing the whole thread, that keeps those feeds from being terribly convenient or easy to use.)

    If you get really desperate, feel free to e-mail me directly at mniehaus@microsoft.com.  Just don't expect an immediate reply, especially on more complex questions.  There's a reason I have gigabyte of e-mail, and most days I'm not able to keep up.

  • Michael Niehaus' Windows and Office deployment ramblings

    Can I deploy Windows Vista Ultimate with BDD 2007?

    • 0 Comments

    Yes, you can.  However, because there is no volume license version of Windows Vista Ultimate, you would need to have a separate license key for each machine being deployed, and each of these machines would need to activate to the Microsoft activation servers on the Internet.

    The simplest way of handling this is to use BDD 2007 Lite Touch and tell the wizard to prompt for a product key; the person performing the deployment would then need to make sure each key is used once and only once.  And if Windows Vista Ultimate were ever reinstalled on the computer, you would want to use the exact same key the next time.

    So while the manual approach is certainly doable, with a little creativity it is possible to do this using BDD 2007's database capabilities to complete automate the whole process.  The required pieces:

    • A table to hold the product keys and to record which keys have been used by which computers.
    • A stored procedure to claim a key for each machine, or to return an existing key if one was already claimed.
    • Configuration entries in the BDD CustomSettings.ini file to call the stored procedure.

    So first let's look at the table.  It's pretty simple, as only two columns are needed: the product key, and the computer that has claimed it.  If the key is unclaimed, the second column would be blank.  So that leads to the next question: how to identify the computer.  My preference is to use a unique value like the asset tag of the computer, although there are other options too (SMBIOS UUID, MAC address, serial number, etc.).  So here's the SQL statement to create the table:

    CREATE TABLE [dbo].[ProductKeyMapping]
    (
        [ProductKey] [varchar](50) NOT NULL,
        [AssetTag] [nvarchar](250) NULL
    )

    Then, we need a stored procedure that will first look for an already-claimed key and if one isn't found, claims a new one.  In either case it needs to return the assigned key back to the caller.  Here's the source for the stored procedure:

    CREATE PROCEDURE [dbo].[GetProductKey]
        (
        @assetTag varchar(250)
        )
    AS
        DECLARE @foundCount int
        SET NOCOUNT ON
        /* Look for the existing row */
        SELECT @foundCount = COUNT(*) FROM ProductKeyMapping WHERE AssetTag = @assetTag
        IF @foundCount = 0
        BEGIN
            /* Not found, consume a key */
            BEGIN TRANSACTION
            UPDATE TOP (1) ProductKeyMapping
            SET AssetTag = @assetTag
            WHERE AssetTag IS NULL
            COMMIT TRANSACTION
        END
        /* Now return the row */
        SELECT ProductKey FROM ProductKeyMapping WHERE AssetTag = @assetTag
        RETURN

    Then all you need to do is tell BDD to call the stored procedure.  Assuming the database is on server SERVER1, uses the default instance, and is named BDD2007, the entries needed in CustomSettings.ini would look something like this:

    [Settings]
    Priority=ProductKeyMapping

    [ProductKeyMapping]
    SQLServer=SERVER1
    Database=BDD2007
    StoredProcedure=GetProductKey
    Parameters=AssetTag
    SQLShare=ZTI$

    So where's the rest of the CustomSettings.ini?  Well, this is only a sample; you would want to merge this into your (likely bigger) existing file.  And what about the last line, specifying SQLShare=ZTI$?  That is so that BDD can make a secure, integrated security connection to the database even from Windows PE: the BDD scripts will first map a driver to the specified server and share (e.g. \\SERVER1\ZTI$ from this example), then make a secure named pipe connection using the same credentials from that connection.  (If you want to use TCP sockets instead of named pipes, you would need to specify a SQL ID and password to make the database connection, as Windows PE isn't able to make an integrated security connection using TCP.)

    This same process can be used for both Lite Touch and Zero Touch (SMS 2003) deployments.  See, not that complicated :-)

  • Michael Niehaus' Windows and Office deployment ramblings

    New Microsoft Update Catalog web site available

    • 0 Comments

    See the blog posting at http://blogs.technet.com/mu/archive/2007/08/14/the-microsoft-update-catalog-v1-is-live.aspx for more details.  For those of you who have been looking for one place to download content from Microsoft Update and Windows Update, this is the place.  Content available includes security updates, drivers, and much more.  For all the items you want to download, place them in the download cart and download them in one big batch.

    For security updates, the web site will download the needed MSU file that you can import into BDD 2007 Workbench.  For drivers, it will download a CAB file containing the needed driver files, so you'll first need to extract the contents of the CAB file before you can import them into Workbench.

    I do have to say, though that some of the files names that it uses are quite entertaining.  Here's what it called the driver CAB file that I downloaded:

    X86-ar_zh-tw_cs_da_de_el_en_es_fi_fr_he_hu_it_ja_ko_nl_no_pl_pt-br_ru_sv_tr_zh-cn_pt-1074443_26d7f118b7b3ebaba7c1314234ba7c7930de25d1

  • Michael Niehaus' Windows and Office deployment ramblings

    BDD 2007 Patch 1 Source Code Released

    • 0 Comments

    It took a while to get around to it, but we finally got it posted.  You can download the MSI installer from http://www.microsoft.com/downloads/details.aspx?FamilyId=6A67F884-D629-4962-BD0A-C51BAD560354&displaylang=en.  For those of you who downloaded the source for the original BDD 2007 release, this source will install into a separate directory, and from there you can compare the two to see the changes made for the patch.

  • Michael Niehaus' Windows and Office deployment ramblings

    New Tafiti web site

    • 0 Comments

    Microsoft Research has created a new Live Search front end that uses Silverlight.  Imagine that, a combination of search and a rich user experience :-)  Check out http://www.tafiti.com to see it in action.  Be sure to click on the little tree icon to see a tree view (literally) of your results.

  • Michael Niehaus' Windows and Office deployment ramblings

    Conference Recordings Available Online

    • 0 Comments

    Interesting in viewing some of the sessions presented at the largest Microsoft conferences held worldwide?  Check out the Microsoft TechNet EMEA IT's Showtime web site at http://www.microsoft.com/emea/itshowtime/.  They have recordings from MMS, TechEd US, TechEd IT Forum (Europe), TechEd Australia, and other conferences.

    Included in the list is one of the sessions that Tim Mintner and I did at TechEd 2007 in Orlando:

    http://www.microsoft.com/uk/technet/itsshowtime/sessionh.aspx?videoid=531

Page 1 of 1 (6 items)