Powershell script to Renew device certificates in a CA environment
Budget: $30 – $250 USD
I need a powershell scrip to renew device certificates in all the stations in my environment using different credentials(Service Account) invoking from a list of machines in an CSV.
Code that needs to run is:
$cert = (Is Cert:\LocalMachine\My | Where-Object{$_.Subject -eq 'CN=<FQDN of Computer>})[0]&certreq @('Enroll', '-machine', '-q', $cert.SerialNumber, 'Renew', 'ReuseKeys')
Code that needs to run is:
$cert = (Is Cert:\LocalMachine\My | Where-Object{$_.Subject -eq 'CN=<FQDN of Computer>})[0]&certreq @('Enroll', '-machine', '-q', $cert.SerialNumber, 'Renew', 'ReuseKeys')