How to bulk import all our users S/MIME certs to the GAL

I have a question about PIV S/MME certificates and publishing them to AD. I am aware of the standard way for users manually  publish their certs to the GAL viaPublish_to_Gal.png

What I am not sure about is if we wanted to systematically bulk import all our users S/MIME certs to the GAL, how would we do that?  Specifically what I need to know is, where in AD are the certificates published too?  From my reading I see that it should reside in the attribute UserCertificate in the attribute editor tab in the object properties.  However if I do publish manually in AD I cannot then see my published certificate in my contact card in Outlook.

Can you please help me understand how this is done?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alexei KuznetsovMicrosoft Outlook MVPCommented:
This can be done using PowerShell. Please see this MSFT blog entry for details:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.