EvotecIT / Testimo

Testimo is a PowerShell module for running health checks for Active Directory against a bunch of different tests
MIT License
534 stars 56 forks source link

Unable to Specify ConfigurationFile #82

Closed ERAustin closed 4 years ago

ERAustin commented 4 years ago

Per the documentation here (https://evotec.xyz/what-do-we-say-to-health-checking-active-directory/) I ran the following:

Get-TestimoConfiguration -FilePath "C:\Scripts\Testimo\TestimoConfiguration.json"

I edit the json file in Notepad ++ and save it. Then I run

$ConfigurationFile = "C:\Scripts\Testimo\TestimoConfiguration.json" $TestResults = Invoke-Testimo -ReturnResults -ExtendedResults -Sources $Sources -Configuration $ConfigurationFile

and I receive this output:

image

PrzemyslawKlys commented 4 years ago
Update-Module Testimo

Sorry about that. I've mistyped and instead of Hashtable used Scriptblock.

ERAustin commented 4 years ago

Thanks for the reply. I've updated to version 0.0.31 and issue remains :/

image

PrzemyslawKlys commented 4 years ago

Try to regenerate json and try it please. If it works than make changes.

ERAustin commented 4 years ago

So interestingly enough I recreated the file and copy/pasted my configuration and that didn't work. I recreated the JSON again from scratch and imported with no changes and it worked. I'll work on recreating this. It appears to be working correctly now. Thanks!

PrzemyslawKlys commented 4 years ago

Its related to one section in config. You can just fix that and it should work. Check the fix I did. Or simply rework it. Sorry

PrzemyslawKlys commented 4 years ago

I’ll add some checks for future proofing.