Skip to content

error when running this function  #4

@ftw1090

Description

@ftw1090

Hello, trying to run this in my environment I am getting this error. The only change I have made to the code is adding in the machine name.

BitLockerKey
Exception calling "FindOne" with "0" argument(s): "The specified domain either does not exist or could not be contacted.
"
At line:14 char:5

  • $compobj = $compsearcher.FindOne().Properties
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : COMException

5jtbvt2$ not found
At line:17 char:9

  •     throw "$comp not found"
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (5jtbvt2$ not found:String) [], RuntimeException
    • FullyQualifiedErrorId : 5jtbvt2$ not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions