Unattended.xml : remove a child item containing a value

Hi all,
I have in a section :
        <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <DiskConfiguration>
                <Disk wcm:action="add">
                    <CreatePartitions>
                       <CreatePartition wcm:action="add">
                               <Order>1</Order>
                               <Type>Primary</Type>
                               <Size>350</Size>
                               <Extend>false</Extend>
                          </CreatePartition>
                          <CreatePartition wcm:action="add">
                               <Order>2</Order>
                               <Type>EFI</Type>
                               <Size>100</Size>
                               <Extend>false</Extend>
                          </CreatePartition>
                          <CreatePartition wcm:action="add">
                               <Order>3</Order>
                               <Type>MSR</Type>
                               <Size>128</Size>
                          </CreatePartition>
                          <CreatePartition wcm:action="add">
                               <Order>4</Order>
                               <Type>Primary</Type>
                               <Size>64000</Size>
                               <Extend>true</Extend>
                           </CreatePartition>
                     </CreatePartitions>
I load the contents of the Xml in the $Xml Variable
To remove a <CreatePartition></CreatePartition> block, I do the following :
# Delete Partition 3 & 4 of the Template
$tmp = $Xml.unattend.settings[1].component[1].DiskConfiguration.disk[0].CreatePartitions.CreatePartition[3] # MSR UEFI
[void] $Xml.unattend.settings[1].component[1].DiskConfiguration.disk[0].CreatePartitions.RemoveChild($tmp)
$tmp = $Xml.unattend.settings[1].component[1].DiskConfiguration.disk[0].CreatePartitions.CreatePartition[2] # Windows UEFI
[void] $Xml.unattend.settings[1].component[1].DiskConfiguration.disk[0].CreatePartitions.RemoveChild($tmp)
And if works great
Now, I would like to remove in the second CreationPartition section the line
                               <Size>100</Size>
I tried :
$tmp = $Xml.unattend.settings[1].component[1].DiskConfiguration.disk[0].CreatePartitions.CreatePartition[1].Size
But it returns the string 100 instead of an object on <Size>100</Size>
I also tried
$tmp = $Xml.unattend.settings[1].component[1].DiskConfiguration.disk[0].CreatePartitions.CreatePartition[1]$tmp.RemoveAttribute("Size")
But it does not remove "Size"
$tmp
action : add
Order : 2
Type : EFI
Size : 100
Extend : false
Could you help me to find the correct syntax.
Thanks
ML

Here is a complete example with the namespace:
$txt=@'
<?xml version="1.0" ?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings>
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Type>Primary</Type>
<Size>350</Size>
<Extend>false</Extend>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>2</Order>
<Type>EFI</Type>
<Size>100</Size>
<Extend>false</Extend>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>3</Order>
<Type>MSR</Type>
<Size>128</Size>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>4</Order>
<Type>Primary</Type>
<Size>64000</Size>
<Extend>true</Extend>
</CreatePartition>
</CreatePartitions>
</Disk>
</DiskConfiguration>
</component>
</settings>
</unattend>
$xml=[xml]$txt
$nsmgr=New-Object System.Xml.XmlNamespaceManager($xml.NameTable)
$nsmgr.AddNamespace('df','urn:schemas-microsoft-com:unattend')
$parent=$xml.SelectSingleNode('//df:CreatePartition[./df:Order[text()=2]]',$nsmgr)
$size=$xml.SelectSingleNode('//df:CreatePartition/df:Size[../df:Order[text()=2]]',$nsmgr)
$parent.RemoveChild($size)
¯\_(ツ)_/¯

Similar Messages

  • OSD: unattend.xml in capture conflicts with unattend in deploy?

    Hi,
    We need to remove some Windows components in our capture, so we created a small unattend.xml for it.
    Now we deploy this capture and apply an xml which contains totally other settings but it fails.
    Please advise what best practises is: only 1 unattend.xml in deploy? Then components are installed which we don't want (like Media Center), if we use the unattend.xml in capture only, we lose flexibility: each change we need to capture the image again.
    J.
    Jan Hoedt

    If you want to remove Windows features, you could just use DISM:
    In WinPE phase, after Apply Operating System Image Step
    Add run command line step
    Commandline: cmd.exe /c dism.exe /image:%OSDTargetDrive%\ /disable-feature /featurename:MediaCenter /scratchdir:%OSDTargetDrive%\Windows\Temp /norestart
    Just make sure that you use %OSDTargetDrive% -variable in your Partition Disk 0 and Apply Operating System Image -steps.

  • How to Differentiate between Parent & child item of material determination

    Hi Experts
    I have a list of material & the Business requirement is to found that whether a material is a Parent material , Child material or Both ( a parent to other children  and a child to another parent).
    I tried using table KONDD & KONDDP but I was not able to differeniate between Parent & Child item.
    I even cant use item category to diferentaite the two as by item categairy i can only find that it is a Prent material but cant find whether this material is a Child material or not.
    Is there any table in which i can enter the Parent material & the output would be child material or any other table which contain both parent & child material.
    Note : In Material determination ( VB11) , the material which is entered is Parent material & the material with which it would be replaced is Child material.
    Kindly Guide.
    Thanks in Advance

    Hi
    The wording of Parent and Child sounds like using a BOM material. In material determination...these two items can be called as Material entered and material determined or Main Item and Sub Item.
    In the sales order overview screen...at line item level check the field 'HLvItem' (Higher Level Item). It will show the POSNR of the main item to which this item is linked. Since this can also happen in the case of free goods and BOM...you have make another check for these items with the item category.
    If the substitue material is not determined as a sub item... you can check the material number in the field 'Material Entered' in the sales tab of the item and compare the material number with that exists in the VBAP-MATNR. If both are different, then this material can be considered as a determined material.
    Thanks,
    Ravi

  • This field contains duplicate values. Remove all duplicate values and try the operation again.

    Greetings Everyone,
    I am getting the follow up errors: "This field contains duplicate values. Remove all duplicate values and try the operation again."
    when I tried to make the field "Claim Number" from the list in site collection library. See the screen below:
    1- I selected on the "List" and I clicked on the list name
    "Claim Tracking Report"
    2- After I clicked on the list name then I went to the ribbon and selected list setting to choose Enforce Unique for the Field Column
    "Claim Number"
    3- Then I went down and selected
    "Yes" to Enforced the Unique for the Field Column "Claim Number".
    4- Then after I clicked "Yes" I got the error
    "Sorry, something went wrong. This field contains duplicate values. Remove all duplicate values and try the operation again."  But I don't have any duplicates values Items, because I had them removed before I tried
    to Enforce the field column values to Unique. Can someone help or provide me a suggestions on how I can solve this issue please. Thank you
    FYI: I am using a Nintex Workflow

    Hope this is a list, how many total items are there?
    Please try to open this list as access(link in IE) and run this query in access
    SELECT Claim.[Claim Number], Count(*) AS Expr1
    FROM Claim
    GROUP BY Claim.[Claim Number]
    HAVING (((Count(*))>1));
    Hope it will show something! if this does not show you dups then better to create a separate list and migrate items after configuring unique column.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How to set customized wallpaper using MDT unattended.xml file

    hello
    I need to set own wallpaper  with OSD using MDT.
    I have edited the unattended.xml file  as added below component to it, other customization with answer file worked except not getting set the wallpaper set and wallpaper  image is available at specified location.Please help to resolved this issue.
    <settings pass="oobeSystem">
           <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <Themes>
                    <DesktopBackground>\\MDTSERVER\DeploymentShare$\pics\images.jpeg</DesktopBackground>
                    <ThemeName>\\MDTSERVER\DeploymentShare$\pics\images.jpeg</ThemeName>
                    <ScreenSaver></ScreenSaver>
                </Themes>
            </component>
        </settings> 

    Putting the JAR files in WEB-INF/lib and using the standard URIs in the taglib directives are all that's needed; the container locates the TLDs in the JAR files at startup.
    If this doesn't work, it's a bug in the container. You may want to upgrade to a later version of Tomcat; 4.0.6 is ancient, and may very well be buggy in this area.

  • When to use unattend.xml in task sequence - best practice?

    Hi, I've tried researching this but not found an answer to my specific query.
    We have ConfigMgr 2012 R2 with MDT 2013 although I don't think this is an MDT specific question.
    I'm trying to create a Build and Capture task sequence for our Windows Server 2008 R2 and Server 2012 /2012R2 server builds utilising an UNATTEND.XML file to make some customisations that can be deployed for every build afterwards in a Deployment Task Sequence.
    Specifically the addition of some Windows Features like SNMP and it's configuration and the addition of the Telnet Client. There are other bits like language settings and configuration items but I'm specifically interested in the Features part for my question.
    In CM 2012R2 you now have the option under the "Apply Operating System" to use a captured image or an original installation source. However they work differently if you specify the use of the same unattended answer file.
    The "image" deployment ignores all of the "add features" sections of the XML file and the "installation source" loses the  configuration options from SNMP from the XML file. When you then deploy the captured image using
    the same unattend.xml again the one from the "installer" now has all the SNMP features required and the one from the "image" is still missing everything.
    So my question is as follows.
    What is best practice for specifying an unattend.xml file in a task sequence. Is it in the build and capture TS or in the Deployment TS ?
    or
    Do I need multiple XML files, one for build and capture with some bits in and another for deployment with the rest in?
    or
    Should I be doing something else?
    Although this is specifically asking about Server O/S we will be using the same methodology for Windows 7 deployment.

    In this case DISM is only used to add the actual features... for configuration you could use a simple script that runs afterwards. Sample registry file:
    SAMPLE REG FILE - HKLM-SNMP.reg
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters]
    "NameResolutionRetries"=dword:00000010
    "EnableAuthenticationTraps"=dword:00000001
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\PermittedManagers]
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\RFC1156Agent]
    "sysServices"=dword:0000004f
    "sysLocation"=""
    "sysContact"=""
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\TrapConfiguration]
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\TrapConfiguration\public]
    "1"="127.0.0.1"
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\ValidCommunities]
    "public"=dword:00000004
    Sample batch file:
    SAMPLE SCRIPT FILE - ConfigureSNMPService.bat
    @ECHO OFF
    net stop "SNMP Service"
    regedit /s HKLM-SNMP.reg
    net start "SNMP Service"
    Also some settings for SNMP can be controlled through group policy:
    http://serverfault.com/questions/285762/group-policy-for-multiple-snmp-permitted-managers

  • SM Portal display issue while creating incident classification with child items

    Hii,,
    We need to create some incident classification with child items. After creating classification with child items, portal is not showing the classification properly and the page display not showing properly. i.e. showing a block with drop down instead of simple
    drop down as same as for urgency. Please find the snapshot and suggest..
    Regards, Syed Fahad Ali

    The portal flattens those lists, so sadly this is normal behaviour. I would assume it sorts the list according to ordinal which means you may be able to atleast get a list in the correct order. 
    ex. Ordinal in paranthesis
    1. Hardware (1)
    1.1 Printers (3)
    2. Software (2)
    2.1 Windows (4)
    I would expect this list to be flattened into
    Hardware
    Software
    Printers
    Windows
    You see? In order to edit ordinal you would have to edit the list manually in XML. Tons of ressources on how to do that. 
    Cheers,
    Anders Spælling
    Senior Consultant
    Blog:  
    Twitter:   LinkedIn:
    Please remember to 'Propose as answer' if you find a reply helpful

  • Avoid printing child items of Sales BOM in AR Invoice

    Hi All,
    I have a requirement to edit the print layout of AR Invoice to see only the parent item of the Sales BOM in SAP 2005.
    In SAP 2007, there is an option to Hide BOM Components in Print Out but how do I avoid printing child items in SAP 2005.
    Please advise.
    Thanks for your help!
    Regards,
    Payal

    Hi Payal,
    As a definition of B1, the children of the Sales BOM will always be shown in a marketing document.
    However, we can change the template to hide them from the printouts. Please kindly follow the steps as below:
    Print template editing for removing child items of Sales BOM
    1.Add a new Text Field with Text 'I' in the Repetitive Area. ('I' is the attribute for child items)
    2.Add a new Data Field in the Repetitive Area as below:
       a)In the Content tab, chose Table A/R Invoice # Rows and Column BOM Type
    3.   Add a Formula in the Repetitive Area as below In the Content tab, chose:
          i.Source Type: Formula
          ii.In the Formula Editor, insert Field 1: the newly created Data field
          iii.Operation: !=
          iv.Field 2: the newly created Text field e.g. Field_316!=Field_315
    4.Set the three fields added as Invisible, in order to set it as invisible, please uncheck the Visible box  under General tab
    5.Set Link to Field on the General tab of every field in the Repetitive Area (Row Level) to the exclusive number of the newly created calculation field.
    6.Double-click the Repetitive Area to open Repetitive Area Property, Check Area Height Adjustment box under Format tab to hide the blank lines.
    7 Save template and set as default, print preview.
    You will find that the row number is the original, not successive, number. It is better to hide the row number field.
    I hope it shall help.
    Regards,
    Varun
    SAP Business One Forum Team.

  • Removing a child instance from a parent child list. - non L2 Caching

    I have a parent Entity
    Parent
    int id
    String name
    @onetomany
    List <Child> list
    and a child Entity
    Child
    int id
    String name
    First, let me say, I have L2 cache turned off.
    So lets say I have a parent record with three children and I want to remove child 2. I have found if you remove the child only in the EM then when you select the parent again, it shows the child still being there even though the child has been removed from the db. I liked only having to remove the child because its only one instance to pass and remove over the web. But with that said, how do I remove the entity our of the parents Children list so it no longer shows up in the front end in the list? I cant use the selected index in the front end because I sort the data.
    Or is it better to save the state of Parent too? But if so, what if Parents Children is hundreds of records. Thats alot of overhead for one record to be deleted. Could use some help here. Thanks in advance.

    You should always maintain bi-directional relationships. You need to remove the child from the parent.
    Since you are not caching, if you acquire a new EntityManager after commit, the parent's child will be gone.
    If you refresh the parent in the same EntityManager after commit, then it will be gone.
    If the collection is really big, then consider not mapping it, just query for it if you need it. There is no point having a relationship that is too big to read.
    Note that if you use weaving, and a List, then remove() will not trigger the collection to instantiate in EclipseLink (nor add, but contains or size will).

  • How can I disable windows firewall and install cluster software and its service using unattended.xml file?

    platform: 2008r2
    services which need install: MSDTC Service, Windows Cluster Service, SQL Cluster

    Hi,
    I am not quiet understanding your question, could you clarify your question, as far as I know, an answer file is an XML-based file that contains setting definitions and values
    to use during Windows Setup. In an answer file, you specify various setup options, including how to partition disks, the location of the Windows image to install, and the product key to apply. You can also specify values that apply to the Windows installation,
    such as names of user accounts, display settings, and Internet Explorer favorites. The answer file for Setup is typically called Unattend.xml.
    The related KB:
    Building an Answer File
    http://technet.microsoft.com/en-us/library/cc748874(v=ws.10).aspx
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Unattend.xml parsing/merging issue with SCVMM 2012 R2

    Hi all
    I have a problem with a new install of SCVMM 2012 R2. I have created templates for 2008 R2, 2012 and 2012 R2. I have an issue with the unattend.xml losing some of its configuration when the 2012 and 2012 R2 templates are built, this issue however doesn't
    occur on a 2008 R2 template build.
    I have generated unattend.xml files for all 3 OS's using System Image Manager in the latest AIK using the original install.wim from each OS media.
    In the unattend.xml file I have specified language settings, and a few other bits but the issue I have is when I configure autologon with local admin and password. I specify a logon count of 1, I also specify a GUIRunOnce command in SCVMM and not the answerfile.
    The problem is the resulting merged unattend.xml has a logon count of 999 and no GUIRunOnce command. I have tried different variations where I specify GUIRunOnce in the xml and not SCVMM, applying the autologon to the Template or Guest OS profile and
    all end with the resulting xml with logon count of 999 and no GUIRunOnce. If I remove the autologon part then GUIRunOnce gets parsed and works correctly.
    As mentioned this only happens with Server 2012 and 2012 R2, 2008 R2 works correctly.
    Any ideas?

    Hi Kevin
    I am struggling with the same thing during bare metal installs of Hyper-V hosts. In my case I have managed to narrow it down to the language settings in the oobe pass. If I include them, parsing of the unattend file halts (without an explicit error anywhere)
    and the host fails to join the domain. Could you try to leave out the language settings in oobe pass and see if it then completes as expected? Would be interesting to see if it actually is the same issue with a slightly different flavour :)
    EDIT: Got a bit further now with the new release of WS2012 R2. All the testing I've done has been with the 05182 build. Stumbled across KB2913316 which stated that a new build (31419) was released december 11th. Allthough the KB does not directly apply to our
    issue I thought I'd give it a go, so I went about building a new vhdx-image. Low and behold - the first test went smoothly applying all the settings in the unattend file! I'm going to continue testing to make sure the successful run wasn't just a fluke.

  • Pinning Programs to the Taskbar via unattend.xml

    Trying to pin the following programs to the taskbar buy adding them in the "amd64_Microsoft-Windows-Shell-Setup__neutral"of the specialize pass of unattend.xml file used by SCCM\OSD in the "Apply Operating System' step.
    -<TaskbarLinks>
    <Link0>%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Word 2010.lnk</Link0> <Link1>%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Excel 2010.lnk</Link1> <Link2>%ALLUSERSPROFILE%\Microsoft\Windows\Start
    Menu\Programs\Microsoft Office\Microsoft Outlook 2010.lnk</Link2>
    </TaskbarLinks>
    I edited the unattend file using WSIM tool and every other setting I applied  using the file has worked but these just dont show up on the taskbar.
    Weird thing is if i manually pin say Word for example  to the taskbar after the OSD deployment is complete and hover the mouse over it it will display as Microsoft Word 2010 (2) as if it is the 2nd time the program has been pinned to the taskbar even
    though you can only see one of them. same for Excel and Outlook but if I add say Access it will not have the (2) after it
    So it's like the settings from the unttend file are working somewhat as Win7 thinks there is already a shortcut there but they are just not displaying...
    I've seen others saying this can only be done when syspreping and call the unattend at that time but if that is true why is it in the "amd64_Microsoft-Windows-Shell-Setup__neutral" Components of WSIM?

    I presume you are not also configuring any of the same links in the StartPanelLinks? (I have heard that it sometimes causing conflicts).
    I agree the Deployment guys stuff is heavily MDT-centric but in this instance all that is required to use their script is to copy the ZTIUtility.vbs
    (from the scripts folder in toolkit package) and no environment changes. However you don't even need to do this as you could simply adapt their code snippet and put into a vbs file (A bare bones example of this is shown below but with no error checking or
    logging, which is built into the Deployment Guys sample script).You could configure this to be run once by each user when they first logon (e.g. via ActiveSetup or RunOnce registry key) .
    Const CSIDL_COMMON_PROGRAMS = &H17
    Const CSIDL_PROGRAMS = &H2
    Set objShell = CreateObject("Shell.Application")
    Set objAllUsersProgramsFolder = objShell.NameSpace(CSIDL_COMMON_PROGRAMS)
    strAllUsersProgramsPath = objAllUsersProgramsFolder.Self.Path
    Set objFolder = objShell.Namespace(strAllUsersProgramsPath & "\Microsoft Office")
    Dim arrShortcuts
    arrShortcuts = Array("Microsoft Office Word 2010.lnk", _
    "Microsoft Office Excel 2010.lnk", _
    "Microsoft Office Outlook 2010.lnk")
    Dim i, objShortcut
    i = 0
    For Each objShortcut In arrShortcuts
    Set objFolderItem = objFolder.ParseName(arrShortcuts(i))
    PinToTaskBar(objFolderItem)
    i = i+1
    Next
    Sub PinToTaskBar(FolderItem)
    For each verb in FolderItem.Verbs()
    If verb.Name = "Pin to Tas&kbar" then
    verb.DoIt()
    End If
    Next
    End Sub
    Thanks you very much I will give this a shot.
    But no i was not trying to add anything to the StartPanelLinks, just want to add 3 items to taskbar (which I understand 3 is the limit). Frustrating that you have to resort to scripts when the setting to do it appears to be
    there for you to use in the WSIM setting  but it just doesn't work

  • Delete a node containing a child node with specific value

    Hello,
    I wanted to know how to delete a node which contains specific value in one of its child node.
    Here is the xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <rows>
         <ROW>
              <part_num_ref ID="100124">1</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
         <ROW>
              <part_num_ref ID="100124">2</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
         <ROW>
              <part_num_ref ID="100124">3</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
         <ROW>
              <part_num_ref ID="100124">4</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
         <ROW>
              <part_num_ref ID="100124">5</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
         <ROW>
              <part_num_ref ID="100124">6</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
         <ROW>
              <part_num_ref ID="100124">7</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
         <ROW>
              <part_num_ref ID="100124">8</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
         <ROW>
              <part_num_ref ID="100124">9</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
         <ROW>
              <part_num_ref ID="100124">10</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
         <ROW>
              <part_num_ref ID="100124">11</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
         <ROW>
              <part_num_ref ID="100124">12</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
         <ROW>
              <part_num_ref ID="100124">13</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
         <ROW>
              <part_num_ref ID="100124">14</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
         <ROW>
              <part_num_ref ID="100124">15</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
         <ROW>
              <part_num_ref ID="100124">16</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
         <ROW>
              <part_num_ref ID="100124">17</part_num_ref>
              <part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
              <part_country ID="100026">0</part_country>
              <tot_cost__rtd ID="102281">0</tot_cost__rtd>
              <tot_cost__demo ID="102282">0</tot_cost__demo>
              <tot_cost__tra ID="102283">0</tot_cost__tra>
              <tot_cost__coor ID="102284">0</tot_cost__coor>
              <tot_cost__sprt ID="102285">0</tot_cost__sprt>
              <tot_cost__mng ID="102286">0</tot_cost__mng>
              <tot_cost__oth ID="102287">0</tot_cost__oth>
              <tot_cost ID="100135">0</tot_cost>
              <tot_rcpt ID="102016">0</tot_rcpt>
              <tot_grant ID="100136">0</tot_grant>
         </ROW>
    </rows>
    I would like to delete one of the node <ROW> which contains the value 1 for the child node <part_num_ref >
    Is it possible?
    Thanks in advance for your answers.
    Regards,
    Stessy Delcroix

    The following is a possibility on database version 10.2.x (what database version are you using?):
    Example from XMLDB Developers Guide 10.2
    Example 4-26 Deleting LineItem Element Number 222
    SELECT extract(OBJECT_VALUE,
                   '/PurchaseOrder/LineItems/LineItem[@ItemNumber="222"]')
      FROM purchaseorder
      WHERE existsNode(OBJECT_VALUE,
                       '/PurchaseOrder[Reference="AMCEWEN-20021009123336171PDT"]')
            = 1;
    EXTRACT(OBJECT_VALUE,'/PURCHASEORDER/LINEITEMS/LINEITEM[@ITEMNUMBER="222"]')
    <LineItem ItemNumber="222">
      <Description>The Harder They Come</Description>
      <Part Id="953562951413" UnitPrice="22.95" Quantity="1"/>
    </LineItem>
    1 row selected.
    UPDATE purchaseorder
      SET OBJECT_VALUE =
          deleteXML(OBJECT_VALUE,
                    '/PurchaseOrder/LineItems/LineItem[@ItemNumber="222"]')
      WHERE existsNode(OBJECT_VALUE,
                       '/PurchaseOrder[Reference="AMCEWEN-20021009123336171PDT"]')
            = 1;
    SELECT extract(OBJECT_VALUE,
                   '/PurchaseOrder/LineItems/LineItem[@ItemNumber="222"]')
      FROM purchaseorder
      WHERE existsNode(OBJECT_VALUE,
                       '/PurchaseOrder[Reference="AMCEWEN-20021009123336171PDT"]')
            = 1;
    EXTRACT(OBJECT_VALUE,'/PURCHASEORDER/LINEITEMS/LINEITEM[@ITEMNUMBER="222"]')
    1 row selected.

  • Capture image with .wim and unattend.xml?

    Hi,
    We captured an image with the default wim of windows 7 + an unattend.xml. Now it seems this unattend.xml was not correctly applied (media center was removed but is still there, some components were installed
    but are not etc). Question: when capturing an image, you CAN use a default .wim right? Or should you use “apply operating system from original installation source” to have it applied correctly?
    Our problem is that our original task sequence had to many Windows updates and crashed. That’s why we are using offline updates which we include in the capture task sequence.
    If we would need to use the "apply operating system from original ..." then we'd need to:
    1.capture without updates
    2.import this wim into sccm
    3.offline update this wim
    4.use this for capture WITH updates
    Please advise. J.
    Jan Hoedt

    Have you tried making a package of your unattended.xml and pointing to it in your Apply Operating system step?
    If I remember correctly SCCM will make it's own unattended.xml even if one exists in the wim file, using the package of the unattended.xml that you have already created will make it use that one. Looks something like this in the task sequence with the highlighted
    yellow parts filled out by your package of the unattended.xml:

  • How to stop using unattend.xml

    I need to remove Unattended.xml from applying from within a task for an OS deploy. I've tried removing/delete the task sequence, manually going in and removing the settings from Unattended.xml, it keeps applying during the build process. How
    do I stop it?

    copy <installdir>\Templates\Unattend_<architecture>.xml %DeployRoot%\Control\<TSID>\unattend.xml
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Perfect response!

Maybe you are looking for

  • Unable to access applications in workspace,shared services

    Hi , I am Unable to access applications in workspace and shared services on EPM 11.1.1.3. It happened after normal shutdown/startup scripts were run. But when I reconfigure the Weblogic web server and run the services again I can access the applicati

  • Error DBIF_RSQL_INVALID_RSQL in R/3

    Dear All, I have some data to be extracted from R/3 (from custom generic datasource), but it always return red and the error message is : "Job terminated in source system -- Request set to red" and no record to be loaded. Then I checked to SM37 in R/

  • SAP Business By Design Software- A Review

    SAP Business By Design Software- A Review An Independent Enterprise Resource Planning Software Review : SAP is one of the most recognized and trusted brands within the enterprise resource planning (ERP) software industry. Having delivered SAP R/2 in

  • Link between spoolnumber and object (e.g. delivery, invoice...)

    Hi, how can I get a link between a spoolnumber (as seen in SM37) and the object, this spool was created from, for example a specific delivery or invoice? Thanks and regards Jan

  • FEP Client on WS 2012

    Hi All, i have SCCM 2012 R2 and I created client settings to install the FEP and uninstall any previous AV. this worked with all Computers i have except WS 2012. i got bellow error message Cannot complete the System Center Endpoint Protection install