Skip to content

PowerView:Invoke-MapDomainTrust Exception #74

@ethack

Description

@ethack

When I run the function Invoke-MapDomainTrust I get the following exception.

Exception calling "ContainsKey" with "1" argument(s): "Key cannot be null.
Parameter name: key"
At PowerTools-master\powerview\powerview.ps1:10924 char:42
+         if (-not $SeenDomains.ContainsKey <<<< ($Domain)) {
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

WARNING: The specified domain redacted.com does not exist, could not be
contacted, or there isn't an existing trust.

It continues running and looping through each item but it's throwing a lot of the above exceptions in my current environment. It appears to still be returning good results as it finds them as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions