Error running Dump.ps1 : Cannot process argument transformation on parameter 'ldapPort'
Doroneitan80 opened this issue · 1 comments
Doroneitan80 commented
Hello, I try to test the script but I get some running error.
- I downloaded AD-control-paths
- I downloaded the 3 Prerequisites
- I run the script: ".\Dump.ps1 -outputDir C:\TP\ -domainController dc1 domainDnsName testdomain.local"
- 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
Doroneitan80 commented
Sorry, just forgot a "minus", here is the good command:
".\Dump.ps1 -outputDir C:\TP\ -domainController dc1 **-**domainDnsName testdomain.local"