Auditing tool for PI Security is a framework to baseline the security configuration of your PI System. This framework is built as a PowerShell module containing cmdlets to perform different calls to collect the data from the security settings of specified PI System components.
A series of PowerShell script files (*.psm1) form a single module named PI System Audit Module (or PISysAudit Module) once loaded. You will find one core script containing the collection logic and library scripts containing the validation logic for different topics such as best practices to harden the machine, PI Server, etc. The module exposes several cmdlets either used for the internal logic or the external interface with the end-user.
The PI System Audit Module (PISysAudit) can be executed locally or remotely and make use of existing command line utilities to perform many tasks. Note that the script requires PowerShell version 3.0 or later for the machine running the script, if a remote machine is targeted, that machine needs to have powershell 2.0 or later. This allows compatibility with many versions of the PI System. Full support for PowerShell version 2.0 on the client and target machine is documented as Issue #57.
The current version of the PISysAudit module implements validations covering machine (AU1XXXX), PI Data Archive (AU2XXXX), PI AF Server (AU3XXXX), SQL Server (AU4XXXX) and PI Coresight Server (AU5XXXX) best practices with the PI System.
Latest change 14/11/2016:
* Added export utility to dump the security configuration for the PI Data Archive to a folder in CSV files. Corrected issue where the SQL shell context is applied when the SQL Module is implicitly loaded.
Usage and download From source:
Be sure git has been install on your windows system, then Open in cmdlet git clone https://github.com/osisoft/PI-Security-Audit-Tools cd PI-Security-Audit-Tools cd PI-Security-Audit-Tools/PISecurityAudit/ Import-Module ./PISYSAUDIT.psd1 Get-Command -Module PISYSAUDIT Get-Help piaudit Update: cd PI-Security-Audit-Tools [On Your Path] git pull Note this Module has been tested on Powershell v3.0
Source: https://github.com/osisoft