# EM on cloned devices

**URL:** <https://forum.itarian.com/t/em-on-cloned-devices/51766>\
**Category:** ITarian Endpoint Manager\
**Created:** [May 17, 2019, 10:30pm UTC](https://forum.itarian.com/t/em-on-cloned-devices/51766 "2019-05-17T22:30:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![at211](https://forum.itarian.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@at211](https://forum.itarian.com/u/at211)\
**Post date:** [May 17, 2019, 10:30pm UTC](https://forum.itarian.com/t/em-on-cloned-devices/51766/1 "2019-05-17T22:30:00Z")

</div>

Can anyone advise on the best way to set up EM for use on devices that are deployed from an image? As a test I cloned a device that was already enrolled. I renamed the PC that I started up from the cloned image, and the device name changed in the C1 dashboard to the new PC name, but the original device could no longer be found.

I uninstalled and reinstalled EM on the original device, thinking that would make it show up as a separate instance in the C1 dashboard, but instead the new device was renamed and the entry for the new device was gone.

Are there some files left over after an uninstall that are causing the devices to enroll with Comodo with the same token that would have to be manually removed?

Thanks all!

---

<div class="post-metadata">

**Author:** ![Rick\_C](https://forum.itarian.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@Rick\_C](https://forum.itarian.com/u/Rick_C)\
**Post date:** [May 18, 2019, 12:18am UTC](https://forum.itarian.com/t/em-on-cloned-devices/51766/2 "2019-05-18T00:18:13Z")

</div>

Hello @at211  
We strongly recommend reviewing the following [wiki guide for deploying the EM client in a cloned environment](https://wiki.itarian.com/frontend/web/topic/how-to-deploy-itarian-clients-in-a-instant-clone-environment-from-running-golden-image).

---

<div class="post-metadata">

**Author:** ![at211](https://forum.itarian.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@at211](https://forum.itarian.com/u/at211)\
**Post date:** [May 21, 2019, 3:58pm UTC](https://forum.itarian.com/t/em-on-cloned-devices/51766/3 "2019-05-21T15:58:03Z")

</div>

Thank you! Didn’t even know that guide existed.

---

<div class="post-metadata">

**Author:** ![at211](https://forum.itarian.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@at211](https://forum.itarian.com/u/at211)\
**Post date:** [May 21, 2019, 11:21pm UTC](https://forum.itarian.com/t/em-on-cloned-devices/51766/4 "2019-05-21T23:21:40Z")

</div>

Reviewing that guide, the use case is different from mine so I have some additional questions. In the guide, the assumption is that the clones are VMs that are spun up as needed and erased when no longer needed, so the instructions explain how to set them up to automatically enroll and unenroll at startup/shutdown.

In my use case, we have standardized hardware used in many locations, so we use cloning (Windows Deployment Server/Clonezilla) to quickly get the hardware up and running. Would I be right in thinking that as the machine is not a disposable VM as in the guide, that they just need to be set up to automatically enroll themselves (and not to ever un-enroll)? If so, what would be the correct way to go about doing that? Enrolling on every logon seems like it would be a bad idea.

---

<div class="post-metadata">

**Author:** ![Rick\_C](https://forum.itarian.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@Rick\_C](https://forum.itarian.com/u/Rick_C)\
**Post date:** [May 22, 2019, 12:08am UTC](https://forum.itarian.com/t/em-on-cloned-devices/51766/5 "2019-05-22T00:08:35Z")

</div>

hi @at211  
There is _no_ one correct way to implement the concepts outlined in the linked wiki in my first reply (depends on the ‘cloning method’). The main takeaway there is the use of _‘enrollment\_config.ini’ as mentioned in Step 5. Here is another way to do it._

 
_- Download enrollment\_config.ini from URL: https ://mdmsupport.comodo.com/enroll/resolve/token/TOKEN\_ID  
where TOKEN\_ID is the alphanumeric string in the filename of the EM agent installer  
ex., em\_x1y2z3a4\_installer.msi (msi package name is ‘em’, TOKEN\_ID is ‘x1y2z3a4’)  
so the URL will be: https ://mdmsupport.comodo.com/enroll/resolve/token/x1y2z3a4_

_- Save it in the installation folder of the EM client._

_- The device will be enrolled after the next ‘ITSMService’ restart (either manually restart the service or restart the device)._

---

<div class="post-metadata">

**Author:** ![at211](https://forum.itarian.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@at211](https://forum.itarian.com/u/at211)\
**Post date:** [May 22, 2019, 3:19pm UTC](https://forum.itarian.com/t/em-on-cloned-devices/51766/6 "2019-05-22T15:19:51Z")

</div>

Thanks Rick - I tried that suggestion and it seems to work perfectly. One less thing to do when building new hardware!

---

<div class="post-metadata">

**Author:** ![Rick\_C](https://forum.itarian.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@Rick\_C](https://forum.itarian.com/u/Rick_C)\
**Post date:** [May 22, 2019, 10:06pm UTC](https://forum.itarian.com/t/em-on-cloned-devices/51766/7 "2019-05-22T22:06:17Z")

</div>

By the way, @at211, one thing I failed to mention in my previous posts is the expiration of the Token ID. All enrollment Token IDs generated has a 90-day expiration. This means you will need to update your image(s) every 90 days (or before that) with a new Token ID to avoid manual entry of the enrollment data (server, port, Token ID).

---

<div class="post-metadata">

**Author:** ![at211](https://forum.itarian.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@at211](https://forum.itarian.com/u/at211)\
**Post date:** [May 22, 2019, 11:07pm UTC](https://forum.itarian.com/t/em-on-cloned-devices/51766/8 "2019-05-22T23:07:04Z")

</div>

Thanks for the additional info.

If I were to adapt the method from the original wiki guide you posted and use a user token from my own account (one of which shows 720 days remaining), would that work for longer term use without having to update the image?

---

<div class="post-metadata">

**Author:** ![Rick\_C](https://forum.itarian.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@Rick\_C](https://forum.itarian.com/u/Rick_C)\
**Post date:** [May 22, 2019, 11:56pm UTC](https://forum.itarian.com/t/em-on-cloned-devices/51766/9 "2019-05-22T23:56:36Z")

</div>

As long as the Token ID you utilize is a valid one, @at211, it will do.

---

<div class="post-metadata">

**Author:** ![at211](https://forum.itarian.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@at211](https://forum.itarian.com/u/at211)\
**Post date:** [May 23, 2019, 10:11pm UTC](https://forum.itarian.com/t/em-on-cloned-devices/51766/10 "2019-05-23T22:11:32Z")

</div>

Thanks again @Rick_C . You guys (and gals) rock.
