Category filter

Script to deploy trusted CA certificates on Windows

Deploying trusted CA certificates to the devices in a work environment is crucial since certificates enable streamlined access to various services. They act as credentials, authenticate clients, perform encryption/decryption, and can also be used to sign messages digitally. Though the uses may vary, organizations might be looking for possible ways to install them without involving a hands-on approach. The Execute Custom Script action helps you embed necessary commands and run them on numerous computers altogether. This doc helps you with scripts that can be used for installing certificates on Windows devices.

Note:


Supported Versions:
The scripts given below will be supported on the following versions:

  • Windows 10 v1607+ (Pro, Enterprise, Education)
  • Windows 11 (Pro, Enterprise, Education)

Disclaimer:

The sample scripts provided below are adapted from third-party open-source sites.

PowerShell script to deploy certificates

Script to deploy certificates remotely executed successfully from Hexnode.

Replace the URL and file path in the $download url and $local path parameter with the actual certificate URL and file path you want to download and install the certificate.

You can also use the Import-Certificate cmdlet to import certificates to the certificate store.

Replace the file path in the –FilePath parameter with the actual path of the certificate file on your device

How to View Script Output in Hexnode

To review the execution results, navigate to the Action History tab of the specific device in your Hexnode UEM portal. Locate the script entry in the Subject column and click the Show Output button next to the status field to view the returned data.

Notes:

  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

Sample Script Repository