ANSSI-FR/AD-control-paths

Error running Dump.ps1 : Cannot process argument transformation on parameter 'ldapPort'

Doroneitan80 opened this issue · 1 comments

Hello, I try to test the script but I get some running error.

  1. I downloaded AD-control-paths
  2. I downloaded the 3 Prerequisites
  3. I run the script: ".\Dump.ps1 -outputDir C:\TP\ -domainController dc1 domainDnsName testdomain.local"
  4. I get the following error:
    C:\Users\Administrator\Desktop\AD-Control-Path\AD-control-paths-master\Dump\Dump.ps1 : Cannot process argument transformation on parameter 'ldapPort'. Cannot convert value "testdomain.local" to type "System.Int32". Error: "Input string was
    not in a correct format."
    At line:1 char:11
  • .\Dump.ps1 <<<< -outputDir C:\TP\ -domainController dc1 domainDnsName testdomain.local
    • CategoryInfo : InvalidData: (:) [Dump.ps1], ParameterBindin...mationException
    • FullyQualifiedErrorId : ParameterArgumentTransformationError,Dump.ps1

Sorry, just forgot a "minus", here is the good command:
".\Dump.ps1 -outputDir C:\TP\ -domainController dc1 **-**domainDnsName testdomain.local"