diff --git a/Recon/PowerView.ps1 b/Recon/PowerView.ps1 index 2dc5234a..a6120112 100755 --- a/Recon/PowerView.ps1 +++ b/Recon/PowerView.ps1 @@ -19820,6 +19820,8 @@ Custom PSObject with translated domain API trust result fields. } else { # if we're searching for domain trusts through .NET methods + if ($PSBoundParameters['Domain']) { $NetSearcherArguments['Domain'] = $Domain } + if ($PSBoundParameters['Credential']) { $NetSearcherArguments['Credential'] = $Credential } $FoundDomain = Get-Domain @NetSearcherArguments if ($FoundDomain) { $FoundDomain.GetAllTrustRelationships() | ForEach-Object {