PowerShellMafia / PowerSploit

PowerSploit - A PowerShell Post-Exploitation Framework
Other
11.78k stars 4.59k forks source link

The DFS subfunctions only accept a single $Domain #227

Closed joncave closed 7 years ago

joncave commented 7 years ago

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.

HarmJ0y commented 7 years ago

Thanks!