14 Replies Latest reply: Jul 19, 2011 8:00 AM by Jon_UK RSS

    Oops imaged a group of computers with the landesk agent - best way to recover

    Apprentice

      I have noticed that all of the computers seem to have the same unique id's
      HKHLM\Software\Intel\Landesk\common api HKLM\Software\Landesk\common api If i remove these id's and reboot the pc's will it automatically generate unique ideas and properly populate my device list in the console?

        • 1. Re: Oops imaged a group of computers with the landesk agent - best way to recover
          Apprentice

           

          If you delete those id's from the registry, it will be the next time the inventory scanner runs that will generate a new ID for you. Keep in mind though that you will see 2 devices in the database at first. To take care of that, make sure you are handling duplicate devices on your core server.

           

           

          • 2. Re: Oops imaged a group of computers with the landesk agent - best way to recover
            leffrt SupportEmployee

             

            LANDesk has some built in checks that should create new device IDs for these machines.  They are configured for you by default, but can be modified.  Log into the Management Console on the Core Server and go to Configure | Services.  Under the Inventory tab there will be a Device ID button to manage duplicates.  Here you will see how LANDesk has configured it for you.  I like to add Serial Number and change the variable to 3 to make extra sure the devices are duplicates.

             

             

            Also get rid of that image immediately and create a new one.  If you must put the LANDesk Agent on the image make sure you remove those registry keys before capturing the image.

             

             

            • 3. Re: Oops imaged a group of computers with the landesk agent - best way to recover
              Apprentice

               

              What do you mean by duplicate devices - Same two names in the database?

               

               

               

               

               

              Because what I am trying to achieve, is the following.  

               

               

              Remove the name that is in the device list from the image, and have the computer show in the device list with the correct name.  Per the post below, I share a console with other units on my campus, thus I do not have access to the services option under Configure.

               

               

              So , i removed those registry entries, and reinstalled the client.  Hoping that would put the new names of the computer in the device list, and then if i sort by up address, I can just delete the devices with the old name, but same ip address. 

               

               

               

               

               

              Which brings me to a tangent question.  What happens if i choose delete from the Device list, does that delete it from the database, or the next time that computer checks in, it will reappear

               

               

              • 4. Re: Oops imaged a group of computers with the landesk agent - best way to recover
                Apprentice

                 

                I share a console with other units on my campus, thus I do not

                have access to the services option under Configure.

                 

                 

                So , i

                removed those registry entries, and reinstalled the client.  Hoping

                that would put the new names of the computer in the device list, and

                then if i sort by up address, I can just delete the devices with the

                old name, but same ip address. 

                 

                 

                 

                 

                 

                Which brings me to a

                tangent question.  What happens if i choose delete from the Device

                list, does that delete it from the database, or the next time that

                computer checks in, it will reappear

                 

                 

                • 5. Re: Oops imaged a group of computers with the landesk agent - best way to recover
                  Apprentice

                   

                  What LANDesk uses to identify is the unique ID, which is what is contained in that registry. So if you image a machine and it scans in as COMPUTER1, you delete your registry keys so it gets a new ID when you do an inventory scan, you will then see 2 machines by the name COMPUTER1 in your database. What you need to do is delete the original one (the one with the oldest inventory scan).

                   

                  When you delete a device from "All Devices" it is completely deleted from the database. The only way it will scan back in, is if the inventory scanner runs on a machine in which the unique ID (that registry key string) is not already detected in the database.

                   

                  Long story short, for the machines you've already deployed with this issue, redeploy the agent or delete the key and let inventory scanner make a new one. Go through your machines and delete the duplicate computer (meaning look for machines with the same name and keep the most recently inventoried one).

                   

                  Do what was mentioned above and redo your image to either not have the agent installed when you capture it, or delete those registry keys right before you shut it down to be captured.

                   

                   

                  • 6. Re: Oops imaged a group of computers with the landesk agent - best way to recover
                    jack.rotherham Specialist

                     

                    I had a customer of ours do this a short while ago.... The problem being they had deployed the image accross the network to both local subnet PC's and also machines that were on remote sites. This meant that visiting each PC to remove the reg keys and then getting an inventory scan was quite impossible. As a solution I got them to modify the image so that the reg keys were deleted for future deployments. As for the already deployed machines, I got them to do the following:

                     

                     

                    1) Load LDDiscover.exe from  "C:\Program Files\LANDesk\ManagementSuite\Utilities\LdDiscover"

                     

                     

                    2) Click "Configure" and add their subnets into the program.

                     

                     

                    3) Click the "Accounts" tab and enter credentials in which has admin rights on all the targetted machines (don't forget to hit add!!!).

                     

                     

                    4) Goto the Commands section and enter the following lines into it replacing the CORESERVERIP with your own core server name or IP address:

                     

                     

                    Reg delete  "HKLM\SOFTWARE\Intel\LANDesk\Common Api" /va /f

                     

                     

                    Reg delete  "HKLM\SOFTWARE\LANDesk\Common Api" /va /f

                     

                     

                    "C:\Program Files\LANDesk\LDClient\LDISCN32.EXE" /NTT="CORESERVERIP":5007 /S="CORESERVERIP" /F /SYNC /NOUI

                     

                     

                    5) Goto the "Settings" tab and make sure the "Stop after one round" radio button is enabled then click ok

                     

                     

                    6) Hit "Run"

                     

                     

                     

                     

                     

                    The program will then go through and ping all the clients added. Once it has done this it will deploy it's mini agent then promptly start to execute the commands on all the found clients. IF this is as successful on your network as it was my clients, then you will start to get machines entering in your database.

                     

                     

                     

                     

                     

                    Hope this helps. Drop me a message if you need more info.

                     

                     

                     

                     

                     

                    Jack

                     

                     

                    • 7. Re: Oops imaged a group of computers with the landesk agent - best way to recover
                      Jared Barneck SupportEmployee

                      If you have already put the agent on the image then the fix is simply this:

                       

                      Just configure both these settings for Mac Address only:

                       

                      Configure | Service | Inventory | Devices

                      Configure| Services | Inventory | Device IDs. (Use Computer.Network.NIC Adress and also configure the items to check for to only 1)

                       

                      You do NOT need to manually delete those keys.

                       

                      As for putting the agent on the image.

                       

                      ....Prepare for personal rant....do not read if you don't want to read a rant.

                      Never! Never! Never! put the agent on the Image. You might ask, why not? I can remove the Common API keys just fine. Well it is more than that. What happens if LANDesk has a bug with the upgrade of an agent causing the upgrade to fail...oh...jacked! If that happens you suddenly have to rebuild you entire image. There is a reason that LANDesk integrates with Sysprep to automatically install the agent as part of the imaging process. You might say: I use a different imaging tool. That doesn't matter. Our integration is simply a few lines in the GUIRunOnce section of Sysprep which you can use with any imaging solution. Can you include the agent on the image. Of course. No one is really going to stop you. You will be setting yourself up for failure in the future. Will you be happier if you don't add it to the image? Yes. This is a common problem when the agent is on the image even if you delete the common api keys. Often the image needs rebuilt, so they boot it up, run through mini-setup, make the changes, and re-sysprep and recapture the image. Oops. The Common API keys were regenerated while you making the changes and they weren't deleted. So many bad things can happen in the future if you put the agent on the image.

                      ....end personal rant....

                      • 8. Re: Oops imaged a group of computers with the landesk agent - best way to recover
                        Jared Barneck SupportEmployee

                        Just to be clear what really happens when you include the Agent on the Image.  It causes disappearing devices due to Duplicate Device IDs on the client, which is different that Duplicate Devices in the database.

                         

                        Imagine Machine A and Machine B.

                         

                        Machine A has Device ID x

                        Machine B has Device ID x as well.

                         

                        First scans

                        Machine A scans in first time with a full scan using Device ID x.  It now exists in the database.

                        Machine B scan in first time with Device ID x.  It does not create a duplicate device, it actually overwrites the Machine A device in inventory because the Device ID is a duplicate of that used by Machine A.  Machine A appears to have disappeared.

                         

                        Second scans

                        Machine A's next scan is a delta scan (only changes).  But wait.  That causes and out of sync scan because Machine A's inventory was updated by machine B.  It is marked now to do a full scan when it scans in next time (which is does not do right away).

                        Machine B's next scan is also a delta scan.  Same issue.  It is an out of sync scan.  The machine with that device ID was supposed to send a full-scan next time...but of course this is a different machine.

                         

                        third scans

                        Machine A now sends in a full scan and overwrites machine B's information in the database.  Machine A appears to have "reappeared" and Machine B appears to have disappeared.

                        Next Machine B now sends in a full scan and overwrites machine A's information in the database.  Machine A appears to have disappeared and Machine B has now "reappeared".

                         

                         

                        Resolution

                        The fix is simple:

                         

                        Go to Configure | Service | Inventory | Device IDs.

                         

                        It should already be configured for Computer.Device Name and Computer.Network.NIC Address.  You can simply use Computer.Network.NIC Address if you want.

                         

                        Click the check box on the bottom left:

                         

                        [ x ] Reject Duplicate Identities

                         

                        Now it will react differently.

                         

                        First scans with Reject Duplicate Identities

                        Machine A scans in first time with a full scan using Device ID x.  It now exists in the database.

                        Machine B scan in first time with Device ID x.  It actually is told to generate a new device ID and use it the next time it scans.  The issue will be resolved on the next scan.

                         

                        Second scans with Reject Duplicate Identities

                        Machine A's next scan is a delta scan (only changes).  (Here I cannot remember if Machine A is told to use a new Device ID too.  If not, the delta works, if so, the machine will send a full scan with a new Device ID next time.  I'll have to test again.)

                        Machine B's next scan is a full scan with a new Device ID.  It was never in the database so there never was a Duplicate Device.

                        • 9. Re: Oops imaged a group of computers with the landesk agent - best way to recover
                          Apprentice

                          Appreciate the information and the rant

                          • 10. Re: Oops imaged a group of computers with the landesk agent - best way to recover
                            Apprentice

                             

                            Here's the reg file that does the trick:

                             

                             

                            
                            
                            Windows Registry Editor Version 5.00
                            
                            [HKEY_LOCAL_MACHINE\SOFTWARE\INTEL\LANDesk\Common Api]
                            "UniqueID"=-
                            
                            [HKEY_LOCAL_MACHINE\SOFTWARE\LANDesk\Common Api]
                            "UniqueID"=-
                            
                            
                            

                             

                             

                             

                             

                             

                            (also attached)

                             

                             

                            Have a great day!

                             

                             

                            -B

                             

                             

                            • 11. Re: Oops imaged a group of computers with the landesk agent - best way to recover
                              Frank Wils SSMMVPGroup

                              And if you don't want to rebuild your image right now, when in WinPE add to your script or provisioning template a line or 2  after restoring the image that will load the system registry hive from c: ( reg load hklm\system1 c:\windows\system32\config\system ) and clear those reg keys. That way when the device reboots the keys will always be clean.

                               

                              Frank

                              • 12. Re: Oops imaged a group of computers with the landesk agent - best way to recover
                                browardlandesk@jdltech.com Rookie

                                Just a quick question. Has this "Reject Duplicate Identities" been integrated into the MAC agent also?

                                 

                                Thanks

                                • 13. Re: Oops imaged a group of computers with the landesk agent - best way to recover
                                  Rookie

                                  Hi guys

                                   

                                  Reading through this thread I have a very similar problem.

                                   

                                  I have tried all of your hints and tips and still get errors in the application log of the server that read

                                   

                                  'Inventory server detected {AA4E1E5A-1A09-0A4A-95D4-C196AE280F1F} as a duplicated device ID'

                                   

                                  I have no idea how to get rid of this or what is causing it? My device and duplicate device are both set to 'MAC ADDRESS' and 1 but still the problem persists? I have tried removing the agent, deleting the respective reg keys, etc but still no luck? Any ideas?

                                   

                                   

                                   

                                  • 14. Re: Oops imaged a group of computers with the landesk agent - best way to recover
                                    Jon_UK Apprentice

                                    When you uninstall the agent, I'd just check your registry  HKLM-software-Landesk  Key is removed and the HKLM-software-Intel-Landesk key, NOT the INTEL one only the Landesk one under it.

                                     

                                    It's not as bad as it was in say version 6 or 7 but it was always a pain to remove everything, check your landesk client folder has gone as well, you may find it's still there along with some .dll files that may have been registered and unwilling to unload prior to reboot.  The reg key entries removed should stop any prevention of removal.