# Is there an Ansible Windows module to configure certificates similar to MMC.exe service?

**URL:** <https://forum.ansible.com/t/is-there-an-ansible-windows-module-to-configure-certificates-similar-to-mmc-exe-service/35617>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [August 13, 2021, 12:51am UTC](https://forum.ansible.com/t/is-there-an-ansible-windows-module-to-configure-certificates-similar-to-mmc-exe-service/35617 "2021-08-13T00:51:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZillaYT](https://avatars.discourse-cdn.com/v4/letter/z/4da419/32.png) [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Post date:** [August 13, 2021, 12:51am UTC](https://forum.ansible.com/t/is-there-an-ansible-windows-module-to-configure-certificates-similar-to-mmc-exe-service/35617/1 "2021-08-13T00:51:08Z")

</div>

I want to put add a manual procedure were we add a certificate in our system via the “MMC.exe” console

- Add/remove snap-in
- etc

I looked a win\_certificates\_store but it didn’t add the snap-in like I expected it to  
[https://docs.ansible.com/ansible/latest/collections/ansible/windows/win\_certificate\_store\_module.html](https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_certificate_store_module.html)

Thanks.

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [August 13, 2021, 12:52am UTC](https://forum.ansible.com/t/is-there-an-ansible-windows-module-to-configure-certificates-similar-to-mmc-exe-service/35617/2 "2021-08-13T00:52:29Z")

</div>

What would you like it to do exactly? Can you describe in pseudo code please?

---

<div class="post-metadata">

**Author:** ![ZillaYT](https://avatars.discourse-cdn.com/v4/letter/z/4da419/32.png) [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Post date:** [August 13, 2021, 1:04am UTC](https://forum.ansible.com/t/is-there-an-ansible-windows-module-to-configure-certificates-similar-to-mmc-exe-service/35617/3 "2021-08-13T01:04:59Z")

</div>

Here’s the manual procedure i’m trying to automate. Thanks

1. In Windows, click Start \> Run.

2. Type MMC.exe and press Enter.

3. In MMC console, on the File menu, click Add/Remove Snap-in.

4. Click Certificates, and then click Add.

5. In the Certificates snap-in dialog box, select Computer account, and then click Next.

6. Click Finish, and then click OK.

7. In MMC Console, expand Certificates (Local Computer), and then expand Trusted Root Certification A u t h o r i t i e s.

8. Right-click Certificates, point to All Tasks, and then click Import.

9. Click Next, and then browse to the H:\MyApp\cfg folder.

10. In the file type list, select All Files (_._).

11. Open cert.pem to import the certificate.

12. Exit MMC Console.

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [August 16, 2021, 7:01pm UTC](https://forum.ansible.com/t/is-there-an-ansible-windows-module-to-configure-certificates-similar-to-mmc-exe-service/35617/4 "2021-08-16T19:01:28Z")

</div>

[https://docs.ansible.com/ansible/latest/collections/ansible/windows/win\_certificate\_store\_module.html](https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_certificate_store_module.html)

---

<div class="post-metadata">

**Author:** ![ZillaYT](https://avatars.discourse-cdn.com/v4/letter/z/4da419/32.png) [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Post date:** [August 17, 2021, 2:44am UTC](https://forum.ansible.com/t/is-there-an-ansible-windows-module-to-configure-certificates-similar-to-mmc-exe-service/35617/5 "2021-08-17T02:44:59Z")

</div>

That’s the same link I posted in my OP. Did you read it? Thanks.
