Skip to content

A PowerShell script to gather Crestron device data on mass πŸ’ͺ

License

Notifications You must be signed in to change notification settings

Norgate-AV/Crestron-Site-Audit

Repository files navigation

Crestron-Site-Audit


CI Conventional Commits GitHub contributors


A PowerShell script to audit a Crestron Site.

Contents πŸ“–

Features βœ…

  • βœ… Device Version Information
  • βœ… Device Program Information
  • βœ… Device IP Table Information
  • βœ… Device Cresnet Information
  • βœ… Device Control Subnet Information
  • βœ… Device AutoDiscovery Information
  • βœ… Device Runtime Information
  • βœ… Optional: Device File Backup

Getting Started πŸš€

Prerequisites

Create Encryption Key

Credentials are encrypted using AES256. You must first create a key. This key is used to encrypt and decrypt the credentials. The key is not stored in the manifest file. The key must be stored in a .env file in the same directory as the script. The key must be stored in the AES_KEY variable. A sample file, .env.sample is provided in the repository.

1. Copy sample file to .env

cp .env.sample .env

2. Create and enter AES key

AES_KEY=cowbell

The longer and more complex the key, the better.

3. Keep the .env file secret

The .env file should be kept secret. It should not be committed to source control. It's recommended to add the file to your .gitignore file.

Create Manifest File

Create a manifest file with the following format:

{
    "credentials": [
        {
            "id": "guid",
            "name": "Friendly Name",
            "credential": "Aes256 Encrypted Credential"
        },
        {
            "id": "guid",
            "name": "Friendly Name",
            "credential": "Aes256 Encrypted Credential"
        }
    ],
    "devices": [
        {
            "address": "10.0.1.10",
            "secure": true,
            "credentialId": "guid"
        },
        {
            "address": "dev-hostname-02",
            "secure": false,
            "credentialId": ""
        },
        {
            "address": "dev-hostname-03",
            "secure": true,
            "credentialId": "guid"
        }
    ]
}

Usage ⚑

.\CrestronSiteAudit.ps1

Team ⚽

This project is maintained by the following person(s) and a bunch of awesome contributors.


Damien Butt

Contributing ✨

Contributions of any kind are welcome!

Check out the contributing guide for more information.

LICENSE βš–οΈ

MIT

About

A PowerShell script to gather Crestron device data on mass πŸ’ͺ

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published