Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

PowerShell script sends camera wipe cmd to HERNIS FLEX system

License

NotificationsYou must be signed in to change notification settings

LeifKlemetsen-eaton/AutomaticWipeScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

PowerShell script uses REST-API to send camera wipe cmds to HERNIS FLEX system.

Policy for PowerShell script

Set an execution policy to allow PowerShell script execution:

  • Open "Windows PowerShell" as administrator
  • Example on policy: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

Installation

  • 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.
    image

Certification is required for HTTPS

  • 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.image

Task Scheduler

Create Basic Task:
Follow the "Create Basic Task Wizard":
Use the default settings except for the 2 examples below.

  • Choose a trigger.
    image
  • Start a Program
    • Program/script: The PowerShell it self.
    • Argument: The location and the file "StartWiperOnCameras.ps1".
      image

Logging of the REST-API requests

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

Example from a manual script execution

image

About

PowerShell script sends camera wipe cmd to HERNIS FLEX system

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp