Problem with Import Computer Information Wizard not doing check for MAC or GUID already in database

Hi,
My client is using SCCM 2012 RTM in a standalone site.
Yesterday, a technician was preparing computers to deploy OS. He was in a replace scenario and mistakenly mixed the MAC address of the source computer with the one of the new computer.
So when importing computer information for the new one, he entered the wrong MAC address; the one of the source computer already existing in the SCCM database.
I expected the Import Computer Information wizard to generate an error, but no, the import was successful resulting with the source computer DDR being overwritten...
We spent (and lost) time recreating the DDR for the source computer so we could create the computer association for USMT migration.
2 years ago, I opened a call with Microsoft for the exact same issue with SCCM 2007. At that time, they told me that no hotfix would be developped for this bug since there was a workaround (overwritten DDR will re-create itself with Heartbeat
discovery over time) and SCCM 2012 was coming up.
It seems to me that they forgot to fix the issue in 2012. It doesn't seem to be fixed with SP1 as I didn't find anything about it in SP1 doc..
Can someone confirm this bug and can Microsoft do something? Or is there a hotfix already available for it?
Tnx
Patrick

Well you could always remove the Delete Resource permission from the technicians User Rights :P
The option to not overwrite the existing computer object, is right there in the SDK.
So it's anyone's guess, why they haven't added an checkbox in the Import Computer Information wizard and why overwrite is set as the default.
Anyways...you can use the following PowerShell script instead of the Import Wizard.
Just open up a PowerShell console, type in . X:\Path\To\Script\ScriptName.ps1 and
then type New-SCCMComputer
Or you can create a shortcut with the following target %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -NoExit -Command . X:\Path\To\Script\New-SCCMComputer.ps1; New-SCCMComputer
You will need to change the default values for $SiteServer and $SiteCode to your environment
Function New-SCCMComputer
[CmdletBinding()]
Param(
[Parameter(Mandatory=$False)] $SiteServer = "Server.Domain.Local",
[Parameter(Mandatory=$False)] $SiteCode = "PS1",
[Parameter(Mandatory=$True,HelpMessage="Please Enter the Computers Name")] $ResourceName,
[Parameter(Mandatory=$True,HelpMessage="Please Enter the Computers MAC ")] $ResourceMAC
#ImportComputer
$WMIConnection = ([WMIClass]"\\$($SiteServer)\root\SMS\Site_$($SiteCode):SMS_Site")
$NewEntry = $WMIConnection.psbase.GetMethodParameters("ImportMachineEntry")
$NewEntry.MACAddress = $ResourceMAC
$NewEntry.NetbiosName = $ResourceName
$NewEntry.OverwriteExistingRecord = $False
$Resource = $WMIConnection.psbase.InvokeMethod("ImportMachineEntry",$NewEntry,$null)
if ($Resource)
if ($Resource.MachineExists) {
Write-Host "ERROR: MACAddress allready exists" -foregroundcolor red
} else {
Write-Host "Succesfully imported the computer information" -foregroundcolor green
} else {
Write-Host "ERROR: Could not import the computer information" -foregroundcolor red
Best Regards
Claus Codam
Consultant, Developer
Coretech -
Blog

Similar Messages

  • I was having problems with a 7-month old version of office for mac 2011, so I completely removed it from my computer. How do I reinstall it?

    Office for Mac 2011 worked fine until yesterday, then I started having problems. I know I completely deleted the trial version, so please do not suggest that as the cause. I also know that I bought a legitimate full version online from the Microsoft store 7 months ago, and I still have the product key. But since I don't have any trace of Office on my Mac anymore, how do I reinstall it? I tried looking on the Microsoft website, but it wasn't helpful. The only other thing I can do is contact Microsoft customer support, which will probably take forever. So, to respond to this post, please: do not mention trial versions for Office, do not mention Microsoft website. I tried posting another question on this topic, but the people who replied did not seem to understand that their suggestions were not relevant.

    I see you had another post for this same issue where you clearly explained your problem.  There were important details in your other thread that would have helped us in assisting you.  You started this new thread, understandably frustrated.  None of us are mind readers.  You started right off telling us not to mention the only two things that would resolve the problem you had mentioned here which was simply that you had uninstalled office and you were trying to reinstall it.  Reading your other thread, it's clear why you made that comment.  It's generally not a good idea to open multiple threads for the same issue as anyone reading this thread would have no idea what steps you have already taken and what suggestions have already been made.

  • Problem with showing caller information on E90

    I recently purchased an E90 and it appears to have a problem with showing the information of the caller (name) for those numbers that have been synchronized with Outlook 2003 or using Bluetooth from a Sony-Ericsson. The presentation of the caller information for the numbers that I have punched in manually works just fine.
    Does anybody have the same problem and if so what is the solution if it is a configuration issue as it sure sounds like a software bug..
    Regards,
    -mats-

    unfortunately the quick office solution bundled with the E90 is very much inferior to the ones found in the older communicators. you Must PAY to upgrade to a better version w/c to my mind is still inferior to the basic version found in the 9X00/i series communicators
    9110,9210,i,9500,9300,i,E90 I still miss my 9300i , E71, E72 But......

  • My apple keyboard had some problems, the store replaced it for me. I had to sign in to my computer, and couldn't get to pair the keyboard with the computer, as could not sign in. I know there is a command that lets you override this, does anyone know whic

    My apple keyboard had some problems, the store replaced it for me. I had to sign in to my computer, and couldn't get to pair the keyboard with the computer, as could not sign in. I know there is a command that lets you override this, does anyone know which buttons to  press.  I gather when you do this, a box comes up and pairs the two with a number you have to type in.

    Hi rpaspinall,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    Apple Wireless Keyboard: Difficulty during pairing process
    http://support.apple.com/kb/ts1569
    Best of luck,
    Mario

  • I have problem to connect the I-pad 2 with my computer. I-tunes does not synocronize my IPad

    I have problem to connect the I-pad 2 with my computer. I-tunes does not synocronize my IPad

    lewis137 wrote:
    it dossent matter now ill just reformat my computer
    If you like

  • Hi, I have problem with importing MOV files from SJCAM 4000. MOV files are in supported formats for Adobe Premiere Elements 11. But if I'm importing MOV file, only audio part is imported, video part is not imported. How can I solve this problem?

    Hi, I have problem with importing MOV files from SJCAM 4000. MOV files are in supported formats for Adobe Premiere Elements 11. But if I'm importing MOV file, only audio part is imported, video part is not imported. How can I solve this problem?

    haben
    From looking at the specifications of your camera (SJCam 4000), we know already what video compression your camera is using. It is H.264.
    A H.264.mov file should be supported by Premiere Elements 11. On what computer operating system is your Premiere Elements 11 running?
    Do you have the latest version of QuickTime installed on your computer? And, are you running QuickTime and Premiere Elements 11 from a
    User Account with administrative privileges? Please go to Premiere Elements 11 Publish+Share/Computer/QuickTime to confirm that you find
    presets there for the QuickTime choice there.
    What are the properties of these H.264.mov files - is it 1080p30 (1920 x 1080p30)  or something else? Do you know if this camera is recording with a variable or
    a constant frame rate?
    Please review and consider and then we will decide what next.
    Thank you.
    ATR

  • Hi Guys, I have a problem with Importing Pictures onto my Mac mini with Lion installed by using a Card Reader, What is the problem here so I can get Pictures onto my Computer. ,

    Hi Guys,
    I have a problem with Importing Pictures onto my Mac mini with Lion installed by using a Card Reader,
    What is the problem here so I can get Pictures onto my Computer. ,

    Hi Noob Søren
    There are a few things that are confusing in your question.
    As far as I know, you dont have to install Time Machine on this OS as it is already installed for you. You only need to connect a hard drive to your computer via firewire or usb, click on the Time Machine icon, Open Time Machine Preference in the drop down menu and select a disk: your connected hard drive.
    You can of course reformat this connected device, partition it into a few volumes to organise data if you so wish.
    I find it strange that your mac's hard drive is divided into two volumes... perhaps this was created through bootcamp?
    You can access the configuration of your hd through Applications/Utilities/Disk Utilities.
    Clicking on one of the icons on the right hand panel will bring the details of the contents of your hardDrive and volumes. From there you can decide to erase a partition, reformat etc....
    If your hd contains more than one volume, and one of them is empty, you could decide to remove it. Back up all your important data before doing so.
    Hope this helps
    WN

  • I have 3 PC's.  Two of them I use at 2 different locations and only use them 6 months a year.  So, if I have Icloud for my calendar, and turn on a computer that has not been used for 6 months, does all the old information on that computer to go Icloud?

    I have 3 PC's.  Two of them I use at 2 different locations and only use them 6 months each year.  When I turn on a computer that has not been used for 6 months, does all of the old information from that computer end up in Icloud?  Does Icloud push all the new calendar and contact items over the old items?

    A reset may help. Tap and hold the Home button and the On/Off buttons for approximately 10-15 seconds, until the Apple logo reappears. When the logo appears, release both buttons.
    No content is affected by this procedure.

  • I keep getting this error message that says "There is a problem with this windows intaller packaage.a program required for this install to complete could not be run.contact ur support personnel or package vendor" what does it mean?

    I keep getting this error message that says "There is a problem with this windows intaller packaage.a program required for this install to complete could not be run.contact ur support personnel or package vendor" what does it mean? and how do i fix it?

    Try the following user tip:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • Hi Guys 'n' Gals! I have a problem with my computer going into 'Display Sleep' mode and it actually goes into full sleep mode. anyone know how to keep my Mac running software and not go into full sleep after I have set it to 'Never go into computer sleep

    Hi Guys 'n' Gals!
    I have a problem with my computer not going into 'Display Sleep' mode but actually goes into full Computer Sleep mode. Anyone know how to keep my Mac running software and not go into full sleep after I have set it to 'Never' go into 'Computer Sleep' within the 'energy saving' section!
    Any ideas guys?
    Miffa!

    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the  appropriate method.

  • Updated Illustrator CC to CC 2014, having problems with CC performance. Slow and does not quit

    Updated Illustrator CC to CC 2014, having problems with CC performance. Slow and does not quit. What can be causing the issue?

    Hello, please checkout my post concerning lagging issues.
    I've also provided a link to a video I've recorded showing the Illustrator behavior on my iMac 27"
    Adobe Illustrator Cs6 Lagging Extremely Slow on Yosemite 27" iMac i7 late 2013

  • I just stared having problems with importing files from nikon D810 into LR 5.7 it pop a window saying it can not read files on working on a imac 27" running yosemite on my mac pro after a few times it finally was able to read files and import them into LR

    I just stared having problems with importing files from nikon D810 into LR 5.7 it pop a window saying it can not read files on working on a imac 27" running yosemite on my mac pro after a few times it finally was able to read files and import them into LR I never had this problem before was there some kind of update that could of cause this?

  • Hello, I have problems with iCloud. I do not recognize the password and can neither a reset occurs every time I want to do something to stick to iCloud password but does not recognize, what to do? thank you

    Hello, I have problems with iCloud. I do not recognize the password and can neither a reset occurs every time I want to do something to stick to iCloud password but does not recognize, what to do? thank you

    Stop multiple posting

  • Problems with importing in FCPX

    I am having problems with importing my recent holiday video intoFCPX  I have copied all the files from my Panasonic camera into my separate hard drive and they all appear there correctly.
    When I connect the camera to the computer it automatically opens in iPhoto which is a nuisance as I have to stop it from doing so.
    Now comes the problem when I ask to import media into a new project FPCX simply freezes and stops responding.
    If I ask FPCX to import direct from the camera it says it can't re-import because all the material is already in the second hard drive where I store my projects.
    So in a nutshell the programme simply does not respond to importing.
    Any help please or is this a technical problem I have with my Mac.
    Thanks
    A new iMac version 10.9.2
    OS Mavericks
    FPC up dates are all installed

    First, what specific camera are you using?
    Next, create a folder on your hard drive, give it a name you'll recognize, then copy the entire contents of your camera card into it, keeping the full file/folder heirchy in tact.  Disconnect the camera.  Then import from that folder.
    What do you mean specifically when you say "the programme simply does not respond to importing"?  That is sort of a vauge statement.
    Finally, go into the Preferences of iPhoto, you can set it to NOT open when you plug your camera in, and never have that happen any longer.

  • Problems with Importing / Exporting Keywords and Meta Datas

    Hi to all!
    I recently upgraded to Aperture 3 and upgraded my referenced library.
    Today I opened the Keyword HUD and noticed some keywords splattered in my list, which seem to be any older ones, since the new numbering indicated that they are not applied to any pictures.
    So I deleted them.
    Than I noticed the <Imported Keywords> folder, opened it, and it contained also a large number of previous keywords. Also they seemed not to be in use, so I also removed them.
    Than I locked the Keyword HUD.
    Now my question: If I export a version, with the option for 'include metadata' ticked, and edit the version than in Photoshop, and after it, import it back into the Aperture library I do have the problem.
    I have tried 'Import Meta Datas' and and click 'Append'. Than it is recognizing the former keywords, which I would appreciate, but not as 'Imported Keywords'.
    If I would open the file w/ the External Editor and return it back, I guess I would not have this problem. Usually I do open the referenced RAW file, and import than the edited version back into Aperture. Keywords are stored in the Library, so I would not avail the former given keywords than, is that right?
    By the way are the keywords part of Meta Datas or not?
    Are there any workarounds?
    And had other people also problems with their keyword list after upgrading?
    Thank for any ideas / infos!
    Michael

    Added header to CSV and to Code
    $ImportFile = Import-Csv "C:\Users\username\Desktop\Scripts\Powershell\Epic\SCCM CI\Tags.csv" -Header Computer
    foreach ($Computer in $ImportFile){
    $path = "\\$Computer\c$\Epic\bin\7.9.2\Epic Print Service"
    $xml = select-xml -path "$path\EpicPullService.config.xml" -xpath //EpicPullService//Cleanup | Select -ExpandProperty Node
    if ($xml.ArchiveHours -eq '12' -and $xml.DeleteHours -eq '120') {
    $Compliance = $True
    }Else{
    $Compliance = $False
    } "$Computer","$Compliance" | Export-Csv "C:\Users\username\Desktop\Scripts\Powershell\Epic\SCCM CI\Results.csv"
    Results:
    select-xml : Cannot find path '\\@{Computer=SW1412-16985}\c$\Epic\bin\7.9.2\Epic Print Service\EpicPullService.config.xml' because it does not exist.
    At C:\Users\username\Desktop\Scripts\Powershell\Epic\SCCM CI\Check_PullServiceXML.ps1:4 char:8
    + $xml = select-xml -path "$path\EpicPullService.config.xml" -xpath //EpicPullServ ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (\\@{Computer=SW...vice.config.xml:String) [Select-Xml], ItemNotFoundException
        + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SelectXmlCommand
    If it is not a CSV file then just get it with Get-Content
    Get-Content C:\Users\UserName\Desktop\Scripts\Powershell\Epic\SCCM CI\Tags.csv |
        ForEach-Object{
            $computer=$_
            $path ="\\$computer\c$\Epic\bin\7.9.2\Epic Print Service\\EpicPullService.config.xml"
    ¯\_(ツ)_/¯

Maybe you are looking for

  • Transfering Playlists from iPhone back to iTunes

    Is there a way to transfer my Playlists from my iPhone back to my iTunes account? I had to re-download iTunes and have recovered everything except for my 40+ Playlists. Thanks!

  • Sort order in ODS active table ?

    Hello BW Experts, What sort order is data stored in the ODS active table. Thanks, BWer

  • [SOLVED] Network Manager Applet

    One of the things I got used to from Ubuntu is the network manager applet, which allows managing connections with ease. As instructed in the Wiki, I tried installing it with the following commands: pacman -S networkmanager pacman -S network-manager-a

  • How to display attributes in smartview through MDX

    Hello Everyone, I am trying to execute a MDX query in SV where I want to see the man months by individual project. I also want to see projects by level 0 of an attribute dimension. I got the first part working where I see man months by level 0 projec

  • Latest ios (4.3.1)

    Hi I'm kinda having some issues trying to download the latest ios which is 4.3.1. I tried a few times and each time it said runtime error. currently have ios 4.1. and also I'm liviing in Sri lanka Please help me out....