"An item with the same key has already been added" when adding a new Task

Dotaz "An item with the same key has already been added" when adding a new Task

  • 4. května 2012 16:50
     
     

    Hello,

    I recently upgraded from MDT 2010 to 2012 and I'm having trouble creating a new Task Sequence for Win7 Lite.

    The OS image added fine to the server but when I create the task sequence i get

    """"""""""""""""""""""""""""""""""""""""

    Performing operation "import" on Target "Task sequence".
    Beginning task sequence import
    Creating new item named W7Thin at DS001:\Task Sequences.
    An item with the same key has already been added.
    Unable to create task sequence.

    """"""""""""""""""""""""""""""""""""""""

    The script commands are

    """""""""""""""""""""""""""""""""""""""

    Import-Module "C:\Program Files\Microsoft Deployment Toolkit\bin\MicrosoftDeploymentToolkit.psd1"
    New-PSDrive -Name "DS001" -PSProvider MDTProvider -Root "R:\Distribution"
    import-mdttasksequence -path "DS001:\Task Sequences" -Name "W7Thin" -Template "Client.xml" -Comments "" -ID "w7thin" -Version "1.0" -OperatingSystemPath "DS001:\Operating Systems\Windows Embedded Standard 7 in Windows 7 Thin install.wim" -FullName "No Name" -OrgName "No Company" -HomePage "about:blank" -AdminPassword "xxx" -Verbose

    """""""""""""""""""""""""""""""""""""""

    I have removed the image and re-added but I always seem to get this error.  Any idea what I need to do?

    I have lots of other task sequences for Win7 (64 and 32), Win2008 etc which are all fine.

    Thank you

    Graham

Všechny reakce

  • 7. května 2012 10:58
     
     

    seems like the Task sequence ID/task sequence name you are trying to use for your new task sequence already exists in your deploymentshare that is why it is giving that error.

    try giving your Task sequence a different ID and name

  • 7. května 2012 11:47
     
     

    Hello,

    I have tried that.  I called the task xxx and it still complains about the duplicate key.