PowerShell script uses REST-API to send camera wipe cmds to HERNIS FLEX system.
Set an execution policy to allow PowerShell script execution:
- Open "Windows PowerShell" as administrator
- Example on policy: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
- Make a new folder.
- Copy "StartWiperOnCameras.ps1" to the new folder.
- These customer specific variables in the script needs to be set manually.
- For HTTPS: The servername should be equal to the the issuer of the certificate.
- From REST-API server copy this certificate "C:\HERNIS\Configuration\RESTModule\RESTModuleSSLCertificate.cer" to the REST client.
- On the REST client open "Manage user certificates" and from "Trusted Root Certification Authorities/Certificates" import the certificate.
Create Basic Task:
Follow the "Create Basic Task Wizard":
Use the default settings except for the 2 examples below.
In HERNIS Watchdog Control:
- Stop REST Module
- Right click on REST Module. Select Advanced -> Enable logging of all requests
- Start REST Module
REST-API request are stored here:
- C:\HERNIS\Logs\RESTModule\RESTModuleLog_202403_0001.xml