Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Commit f2a9cb2

Browse files
author
Jon Cave
committed
The DFS subfunctions only accept a single $Domain
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
1 parent bd6fe64 commit f2a9cb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Recon/PowerView.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9915,7 +9915,7 @@ function Get-DomainDFSShare {
99159915
.SYNOPSIS
99169916

99179917
Returns a list of all fault-tolerant distributed file systems
9918-
for the current (or specified) domain.
9918+
for the current (or specified) domains.
99199919

99209920
Author: Ben Campbell (@meatballs__)
99219921
License: BSD 3-Clause
@@ -9930,7 +9930,7 @@ The server data is parsed appropriately and returned.
99309930

99319931
.PARAMETER Domain
99329932

9933-
Specifies the domain to use for the query, defaults to the current domain.
9933+
Specifies the domains to use for the query, defaults to the current domain.
99349934

99359935
.PARAMETER SearchBase
99369936

@@ -10213,7 +10213,7 @@ A custom PSObject describing the distributed file systems.
1021310213
function Get-DomainDFSShareV1 {
1021410214
[CmdletBinding()]
1021510215
Param(
10216-
[String[]]
10216+
[String]
1021710217
$Domain,
1021810218

1021910219
[String]
@@ -10292,7 +10292,7 @@ A custom PSObject describing the distributed file systems.
1029210292
function Get-DomainDFSShareV2 {
1029310293
[CmdletBinding()]
1029410294
Param(
10295-
[String[]]
10295+
[String]
1029610296
$Domain,
1029710297

1029810298
[String]

0 commit comments

Comments
 (0)