{"id":21406857,"url":"https://github.com/ms-luf/get-adusercertificate","last_synced_at":"2025-04-16T14:27:44.146Z","repository":{"id":137505209,"uuid":"109821846","full_name":"MS-LUF/Get-ADUserCertificate","owner":"MS-LUF","description":"simple powershell module to get single or all user/contact certificates from an AD with all related information including metadata","archived":false,"fork":false,"pushed_at":"2019-05-15T22:07:25.000Z","size":12,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-29T05:22:44.292Z","etag":null,"topics":["active-directory","certificates","contact-certificates","metadata","powershell","powershell-gallery","powershell-module","smime"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MS-LUF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-07T10:39:15.000Z","updated_at":"2023-06-29T20:04:01.000Z","dependencies_parsed_at":"2023-03-15T07:45:46.251Z","dependency_job_id":null,"html_url":"https://github.com/MS-LUF/Get-ADUserCertificate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MS-LUF%2FGet-ADUserCertificate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MS-LUF%2FGet-ADUserCertificate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MS-LUF%2FGet-ADUserCertificate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MS-LUF%2FGet-ADUserCertificate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MS-LUF","download_url":"https://codeload.github.com/MS-LUF/Get-ADUserCertificate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249250479,"owners_count":21237906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["active-directory","certificates","contact-certificates","metadata","powershell","powershell-gallery","powershell-module","smime"],"created_at":"2024-11-22T16:43:08.924Z","updated_at":"2025-04-16T14:27:44.126Z","avatar_url":"https://github.com/MS-LUF.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://www.lucas-cueff.com/files/gallery.png)\n# Get-ADUserCertificate\nsimple powershell module to get single or all user/contact certificates from an AD with all related information including metadata\n\n(c) 2018-2019 lucas-cueff.com Distributed under Artistic Licence 2.0 (https://opensource.org/licenses/artistic-license-2.0).\n\n## install Get-ADUserCertificate from PowerShell Gallery repository\nYou can easily install it from powershell gallery repository\nhttps://www.powershellgallery.com/packages/Get-ADUserCertificate/\nusing a simple powershell command and an internet access :-) \n```\n\tInstall-Module -Name Get-ADUserCertificate\n```\n\n## import module from PowerShell \n```\n\t.SYNOPSIS \n\tsimple module to get single or all user/contact certificate from an AD\n\tlook for a certificate in usercert, usercertificate, usersmimecertificate attributes for contact and user object\n\t2 functions available : Get-ADUserCertificate and Get-AllADUserCertificates\n\tthe function are standalone and the code could be used outside the module easily. the only prerequisite is RSAT with AD cmdlets.\n\n\t.DESCRIPTION\n\tRequire RSAT if used on non Domain Controller environment.\n\tDo not manage manual authentication to directory (to be managed in a future version)\n\n\t.EXAMPLE\n\tC:\\PS\u003e import-module Get-ADUserCertificate.psm1\n\tC:\\PS\u003e Remove-Module Get-ADUserCertificate\n```\n\n## \n### Get-ADUserCertificate function\n```\n\t.SYNOPSIS \n\tget user certificate(s) from contact or user object from an AD\n\tlook for a certificate in usercert, usercertificate, usersmimecertificate attributes for object contact and user\n\n\t.DESCRIPTION\n\tRequire RSAT if used on non Domain Controller environment.\n\tYou can use several search type entry : distinguishedName or SamAccountName/CN or Mail\n\tyou can search in another forest/domain using parameter \"server\" (by default take the current domain for logged on user)\n\tyou can export the certificates found in file using \"exportcert\" parameter (require a file with full path)\n\n\t.EXAMPLE\n\tGet-ADUserCertificate -searchtype distinguishedName -searchentry \"CN=account,OU=testou1,OU=testou,DC=ad,DC=ad,DC=com\" -exportcert \"C:\\test\\test\\test.cer\"\n\tGet-ADUserCertificate -searchtype Mail -searchentry \"user.account@test.com\"\n\tGet-ADUserCertificate -searchtype SamAccountNameOrCN -searchentry \"UserAccount1\" -server anotherad.ad.com\n```\n\n### Get-AllADUserCertificates function\n```\n\t.SYNOPSIS \n\tget all user certificate(s) from all contact or user objects from an AD\n\tlook for a certificate in usercert, usercertificate, usersmimecertificate attributes for all contact and user objects\n\n\t.DESCRIPTION\n\tRequire RSAT if used on non Domain Controller environment.\n\tyou can search in another forest/domain using parameter \"server\" (by default take the current domain for logged on user)\n\tyou can export the certificates found in file using \"exportcert\" parameter (require a file with full path)\n\tyou can skip warning message with user input using \"skipconfirm\" parameter\n\n\t.EXAMPLE\n\tGet-ADUserCertificate -exportcert \"C:\\test\\test2\"\n\tGet-ADUserCertificate -skipconfirm $true\n\tGet-ADUserCertificate -server anotherad.ad.com\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fms-luf%2Fget-adusercertificate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fms-luf%2Fget-adusercertificate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fms-luf%2Fget-adusercertificate/lists"}