Specifying the type as an array of strings results in an error when passing on the parameter to Get-DomainSearcher:
C:\> Get-DomainDFSShare -Domain test
Get-DomainSearcher : Cannot process argument transformation on parameter 'Domain'. Cannot convert value to type System.String.
At PowerView.ps1:10242 char:46
This appears to have been introduced during the massive rewrite. Previously the Get-DFSshare function did not support multiple domains. Now the top-level function does, but it iterates through the array and passes each domain individually to the version specific subfunctions.
Specifying the type as an array of strings results in an error when passing on the parameter to
Get-DomainSearcher
:This appears to have been introduced during the massive rewrite. Previously the
Get-DFSshare
function did not support multiple domains. Now the top-level function does, but it iterates through the array and passes each domain individually to the version specific subfunctions.