[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 49
  • Last Modified:

How to enroll a machine certicate from AD via script

I´m trying to find a way to enroll a machine certificate from a template already published by the Active Directory Enrollment Policy via script because for some reason the GPO configured for that is not having the behaviour expected.

Manually via MMC, I can request and successfully enroll the certificate within the Computer Account. The template is there correctly published etc. but the GPO is not working and I´m reaching my deadline to get it sorted.

So my idea was to deploy a script via SHELL or POWERSHELL but I couldn´t find any way. Bear in mind that my workstation park is Windows 7, so the Get-Certificate command is not an option.

Any idea is welcome. Thanks
0
Giuliano Foletto
Asked:
Giuliano Foletto
  • 3
  • 2
2 Solutions
 
footechCommented:
I'm not aware of a way to request the certificate with PS (but I haven't researched it), but if I were you I would fix or try to find out why the deployment via GPO isn't working, as that's the way I would do it.
0
 
Giuliano FolettoAuthor Commented:
Yeah, I´m working on that in parallel. Thanks!
0
 
footechCommented:
You may want to start a new question on that topic to try to get it resolved.  If you post the link to it here, I will try to follow up.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Peter HutchisonSenior Network Systems SpecialistCommented:
You can use the Certreq.exe command with the -Enroll option from the command prompt.
0
 
Giuliano FolettoAuthor Commented:
Well, the Certreq command did help but I´ve learned it doesn´t have a "silent" option and that´s by design. So no automatic deployment via script.

Anyway, I´m working on the GPO resolution that in the end is the "correct", and probably the only, way to deploy automatically a certificate over the network.
0
 
Giuliano FolettoAuthor Commented:
In the end I was asking for a workaround that doesn´t exist
0

Featured Post

Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now