EvotecIT / Testimo

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

Error when running invoke-testimo #116

Closed dkervin closed 3 years ago

dkervin commented 3 years ago

When I run this command I receive the following error: Start-Testing : Cannot process argument transformation on parameter 'ExtendedValue'. Cannot convert value to type System.String. At C:\Program Files\WindowsPowerShell\Modules\Testimo\0.0.48\Testimo.psm1:4939 char:13

Thoughts?

PrzemyslawKlys commented 3 years ago

Which version?

dkervin commented 3 years ago

[Current: 0.0.48]

Dennis Ervin Senior Systems Engineer Seaboard Foods 9000 W. 67th Street Merriam, KS 66202 (913) 676-8907 Dennis.ervin@seaboardfoods.commailto:Dennis.ervin@seaboardfoods.com Dennis.ervin@seaboardfoods.usmailto:Dennis.ervin@seaboardfoods.us (Skype)

From: Przemysław Kłys notifications@github.com Sent: Monday, January 25, 2021 8:13 AM To: EvotecIT/Testimo Testimo@noreply.github.com Cc: Ervin, Dennis dennis.ervin@seaboardfoods.com; Author author@noreply.github.com Subject: Re: [EvotecIT/Testimo] Error when running invoke-testimo (#116)

CAUTION: External email - ATTACH suspicious emails to a NEW mail message and send to spam@seaboardcorp.commailto:spam@seaboardcorp.com

Which version?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/EvotecIT/Testimo/issues/116*issuecomment-766843355__;Iw!!C6GyI9hmn1rLYGU!EZa_IEqT0TKoPZgAJ5ca6-pQfbgVZXEfGsWv8yzfNVQEXFS5a9uVtEFDhCsh2gs4ha99zak$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AQQPYZORP3ECBUOIU56X5MDS3V36ZANCNFSM4WRZWQ3A__;!!C6GyI9hmn1rLYGU!EZa_IEqT0TKoPZgAJ5ca6-pQfbgVZXEfGsWv8yzfNVQEXFS5a9uVtEFDhCsh2gs43fM2KJo$.

PrzemyslawKlys commented 3 years ago

What did you run to execute it?

dkervin commented 3 years ago

Simly ran invoke-testimo with no parameters.

PrzemyslawKlys commented 3 years ago

Any specific test it failed on?

dkervin commented 3 years ago

As noted in my first message, it errors on line 4939 of testimo.psm1 when it tries to run the start-testing command.

PrzemyslawKlys commented 3 years ago

Ye, I was more interested which Testimo test failed

image

In this case it seems it failed on Time Synchronization. I'll fix it today - I've been reworking Testimo in last few versions and broke it in the process. sorry for that

dkervin commented 3 years ago

Mine is a bit different; Cannot process argument transformation on parameter 'ExtendedValue'. Cannot convert value to type System.String.

Same issue?

PrzemyslawKlys commented 3 years ago

Should be, i'll fix both

dkervin commented 3 years ago

Great, thank you!

PrzemyslawKlys commented 3 years ago

New version is released. Please update and try again. Please be aware that running Invoke-Testimo without picking tests you need will work but HTML report will be very slow when switching tabs or scrolling. I've to resolve this issue, but for now it is what it is. This is because each tab has lots of tables that are refreshed on tabs switch.

dkervin commented 3 years ago

OK, I will keep that in mind.

Thanks for your assistance.

Dennis Ervin Senior Systems Engineer Seaboard Foods 9000 W. 67th Street Merriam, KS 66202 (913) 676-8907 Dennis.ervin@seaboardfoods.commailto:Dennis.ervin@seaboardfoods.com Dennis.ervin@seaboardfoods.usmailto:Dennis.ervin@seaboardfoods.us (Skype)

From: Przemysław Kłys notifications@github.com Sent: Monday, January 25, 2021 10:18 AM To: EvotecIT/Testimo Testimo@noreply.github.com Cc: Ervin, Dennis dennis.ervin@seaboardfoods.com; Author author@noreply.github.com Subject: Re: [EvotecIT/Testimo] Error when running invoke-testimo (#116)

CAUTION: External email - ATTACH suspicious emails to a NEW mail message and send to spam@seaboardcorp.commailto:spam@seaboardcorp.com

New version is released. Please update and try again. Please be aware that running Invoke-Testimo without picking tests you need will work but HTML report will be very slow when switching tabs or scrolling. I've to resolve this issue, but for now it is what it is. This is because each tab has lots of tables that are refreshed on tabs switch.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/EvotecIT/Testimo/issues/116*issuecomment-766930734__;Iw!!C6GyI9hmn1rLYGU!C_aSClzDvWFAK1ccQfWmCOSxDAtbFu1_Y5s12DUo6pR5ILbWz5maQD9GiCPfM-AiKUO9U4k$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AQQPYZNFV4ZLPVFWJZG4UN3S3WKSJANCNFSM4WRZWQ3A__;!!C6GyI9hmn1rLYGU!C_aSClzDvWFAK1ccQfWmCOSxDAtbFu1_Y5s12DUo6pR5ILbWz5maQD9GiCPfM-Aikoc6bn0$.

AJDurant commented 3 years ago

I've got the same issue on 0.0.49, at a different point

Invoke-Testimo
[i][Testimo] Version [Informative] [Current/Latest: 0.0.49 at 01/25/2021 16:16:52]
[i][Testimo] Using configuration defaults [Informative] [No configuration provided by user]
...
Aging primary DNS Zone [Informative]
Start-Testing : Cannot process argument transformation on parameter 'ExtendedValue'. Cannot convert value to type System.String.
At C:\Program Files\WindowsPowerShell\Modules\Testimo\0.0.49\Testimo.psm1:5102 char:17
+ ...             Start-Testing -Scope 'Domain' -Domain $Domain -DomainInfo ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Start-Testing], ParameterBindingArgumentTransformationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Start-Testing
PrzemyslawKlys commented 3 years ago

If you run it like that? Does it work?

invoke-testimo -Sources DomainDnsZonesAging -ShowReport
PrzemyslawKlys commented 3 years ago

OK, I think i found the reason. If the cmdlet would give more than 1 error it would fail because it expected one string output when it was given an array of strings. Please update and test again.

dkervin commented 3 years ago

Still seeing the error, just in a different location. I have updated testimo before testing again. This time the error occurred at line 4950.

Dennis Ervin Senior Systems Engineer Seaboard Foods 9000 W. 67th Street Merriam, KS 66202 (913) 676-8907 Dennis.ervin@seaboardfoods.commailto:Dennis.ervin@seaboardfoods.com Dennis.ervin@seaboardfoods.usmailto:Dennis.ervin@seaboardfoods.us (Skype)

From: Przemysław Kłys notifications@github.com Sent: Monday, January 25, 2021 12:05 PM To: EvotecIT/Testimo Testimo@noreply.github.com Cc: Ervin, Dennis dennis.ervin@seaboardfoods.com; Author author@noreply.github.com Subject: Re: [EvotecIT/Testimo] Error when running invoke-testimo (#116)

CAUTION: External email - ATTACH suspicious emails to a NEW mail message and send to spam@seaboardcorp.commailto:spam@seaboardcorp.com

OK, I think i found the reason. If the cmdlet would give more than 1 error it would fail because it expected one string output when it was given an array of strings. Please update and test again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/EvotecIT/Testimo/issues/116*issuecomment-767006339__;Iw!!C6GyI9hmn1rLYGU!HCvqXe9XEKmXEstjXspBH-Dc92ACLtVuNK_hIH1tZ9C906TCdyAbXkESEEmpdtvGX30ywpk$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AQQPYZNAKHE4TGTZHTWYJ3TS3WXGFANCNFSM4WRZWQ3A__;!!C6GyI9hmn1rLYGU!HCvqXe9XEKmXEstjXspBH-Dc92ACLtVuNK_hIH1tZ9C906TCdyAbXkESEEmpdtvGrbjvtGo$.

PrzemyslawKlys commented 3 years ago

You need to provide more data - just line numbers is not enough. Which test, what error message

PrzemyslawKlys commented 3 years ago

Did you do

Install-Module Testimo -Force
Import-Module Testimo -Force

image

The line number is very unlikely to give error.

AJDurant commented 3 years ago
invoke-testimo -Sources DomainDnsZonesAging -ShowReport
[i][Testimo] Version [Informative] [Current: 0.0.49, Published: 0.0.50 at 01/25/2021 18:04:54. Update?]
[i][Testimo] Using configuration defaults [Informative] [No configuration provided by user]
[i][Forest] Forest [Informative]

   [i][ad.XXXXXX.com] Domain ad.XXXXXX.com [Informative]
      [i][ad.XXXXXX.com] Aging primary DNS Zone [Informative]
Start-Testing : Cannot process argument transformation on parameter 'ExtendedValue'. Cannot convert value to type System.String.
At C:\Program Files\WindowsPowerShell\Modules\Testimo\0.0.49\Testimo.psm1:5102 char:17
+ ...             Start-Testing -Scope 'Domain' -Domain $Domain -DomainInfo ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Start-Testing], ParameterBindingArgumentTransformationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Start-Testing
invoke-testimo -Sources DomainDnsZonesAging -ShowReport
[i][Testimo] Version [Informative] [Current/Latest: 0.0.50 at 01/25/2021 18:04:54]
[i][Testimo] Using configuration defaults [Informative] [No configuration provided by user]
[i][Forest] Forest [Informative]

   [i][ad.XXXXXX.com] Domain ad.XXXXXX.com [Informative]
      [i][ad.XXXXXX.com] Aging primary DNS Zone [Informative]
         [t][ad.XXXXXX.com] Aging primary DNS Zone [Fail] [Failed to get the zone information for ad.XXXXXX.com on server dc00.ad.XXXXXX.com.; Failed to get the zone information for ad.XXXXXX.com on server dc01.ad.XXXXXX.com.]
         [t][ad.XXXXXX.com] Zone DNS aging should be identical on all DCs [Fail] [Input data not provided. Failing test.]
      [i][ad.XXXXXX.com] Aging primary DNS Zone [Time to execute tests: 0 days, 0 hours, 0 minutes, 5 seconds, 271 milliseconds][Tests Total: 2, Passed: 0, Failed: 2, Skipped: 0]
   [i][ad.XXXXXX.com] Domain ad.XXXXXX.com [Time to execute tests: 0 days, 0 hours, 0 minutes, 5 seconds, 578 milliseconds][Tests Total: 2, Passed: 0, Failed: 2, Skipped: 0]
[i][Forest] Forest [Time to execute tests: 0 days, 0 hours, 0 minutes, 5 seconds, 671 milliseconds][Tests Total: 2, Passed: 0, Failed: 2, Skipped: 0]

So that bit seems to be fixed, thanks!

PrzemyslawKlys commented 3 years ago

Cool! Thank you.

saliumaama commented 2 years ago

I'm having this error message when I run Invoke-Testimo. Not sure why. Is there anything I'm doing wrong ? Is Testimo supposed to be run ONLY on domain controllers ?

[i][Testimo] Version [Informative] [Current: 0.0.72] [i][Testimo] Using configuration defaults [Informative] [No configuration provided by user] Get-WinADForestDetails : Cannot index into a null array. At C:\Program Files\WindowsPowerShell\Modules\Testimo\0.0.72\Testimo.psm1:6298 char:22

image

PrzemyslawKlys commented 2 years ago

I would suggest opening a new issue. You can run it on Windows 10 without any issue. Most likely something is different on your domain that makes it unique, and something that I don't expected to find.

Please check: Get-ADForest, Get-ADDomain - does that work properly?

saliumaama commented 2 years ago

I open new issue already.

That screenshot I sent was sent Windows 10. I have RSAT installed on it.

Do you have to specify the domain name after Invoke-teatimo command ?

On Sun, Sep 26, 2021, 15:52 Przemysław Kłys @.***> wrote:

I would suggest opening a new issue. You can run it on Windows 10 without any issue. Most likely something is different on your domain that makes it unique, and something that I don't expected to find.

Please check: Get-ADForest, Get-ADDomain - does that work properly?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EvotecIT/Testimo/issues/116#issuecomment-927368294, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVZTFWSR47WZBQF2R22BORTUD6BYPANCNFSM4WRZWQ3A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.