Add-DbaComputerCertificate

Adds a computer certificate from a local or remote computer. Helpful for older systems.

Screenshots

dbatools - Add-DbaComputerCertificate

Examples

Adds the local C:\temp\cer.cer to the remote server Server1 in LocalMachine\My (Personal).

Add-DbaComputerCertificate -ComputerName Server1 -Path C:\temp\cert.cer

Adds the local C:\temp\cer.cer to the local computer’s LocalMachine\My (Personal) certificate store.

Add-DbaComputerCertificate -Path C:\temp\cert.cer

Author

This command was created by Chrissy LeMaire. You can find Chrissy on Twitter and his blog.