Windows Vista Forums

XML parsing and Win7 unattended answer files
  1. #1


    Joe Morris Guest

    XML parsing and Win7 unattended answer files

    Has anyone successfully built a PowerShell script that can manipulate (as an
    XML file) the AutoUnattend.XML file created by Microsoft's SIM for Windows 7
    and used to drive its setup process?

    I don't have any trouble with a plain-vanilla XML file, but there's
    something about the way that the unattend file is using namespace
    specifications (including multiple namespace specs in a single node) that's
    causing my xpath filter to consistently return a null response. (If the
    unattend.xml file had a single namespace spec my code would work, but the
    multiple specs seem to be confusing both my code and me.)

    I'll be happy to accept a response of RTFM if someone can tell me where to
    look in which FM (or which FURL if that's more appropriate...) I'll also
    happily accept a pointer to Google, but so far I've not been able to build a
    search argument that gets me the answer.

    This isn't a crisis for now; after spending more time than I care to admit
    trying to find a solution I've changed my build process so that I can do the
    edit by treating autounattend.xml as a flat file, but in the future I may
    need to be able to work with it as a native XML data file.

    Incidentally, I'm working with Powershell 2 on the RTM version of Windows 7
    Enterprise.

    Thanks in advance for any help.

    Joe Morris





      My System SpecsSystem Spec

  2. #2


    Marco Shaw [MVP] Guest

    Re: XML parsing and Win7 unattended answer files

    I've not checked out the XML yet. Maybe you'd consider posting more
    details, and maybe someone will see something from your code...

    Marco

    "Joe Morris" <j.c.morris@newsgroup> wrote in message
    news:h8guhf02e3q@newsgroup

    > Has anyone successfully built a PowerShell script that can manipulate (as
    > an XML file) the AutoUnattend.XML file created by Microsoft's SIM for
    > Windows 7 and used to drive its setup process?
    >
    > I don't have any trouble with a plain-vanilla XML file, but there's
    > something about the way that the unattend file is using namespace
    > specifications (including multiple namespace specs in a single node)
    > that's causing my xpath filter to consistently return a null response.
    > (If the unattend.xml file had a single namespace spec my code would work,
    > but the multiple specs seem to be confusing both my code and me.)
    >
    > I'll be happy to accept a response of RTFM if someone can tell me where to
    > look in which FM (or which FURL if that's more appropriate...) I'll also
    > happily accept a pointer to Google, but so far I've not been able to build
    > a search argument that gets me the answer.
    >
    > This isn't a crisis for now; after spending more time than I care to admit
    > trying to find a solution I've changed my build process so that I can do
    > the edit by treating autounattend.xml as a flat file, but in the future I
    > may need to be able to work with it as a native XML data file.
    >
    > Incidentally, I'm working with Powershell 2 on the RTM version of Windows
    > 7 Enterprise.
    >
    > Thanks in advance for any help.
    >
    > Joe Morris
    >

      My System SpecsSystem Spec

XML parsing and Win7 unattended answer files problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parsing AssemblyInfo files Gary Varga .NET General 0 27 May 2008
I am looking for information on parsing log files (text) rferrisx PowerShell 16 14 Nov 2007
parsing csv files with fields that may contain commas Frank PowerShell 6 12 Jul 2007
comment out lines from unattended xml files - SIM? Tone Vista installation & setup 0 18 Feb 2007
Parsing log files for analysis Karlos PowerShell 1 11 Jan 2007