Hi @Brock Eldridge ,
Probably the return value is empty.
You can try the code below and see its result.
Dim powershell As PowerShell = PowerShell.Create()
powershell.AddScript("$computer = Get-ADComputer WS08;Get-ADObject -Filter 'objectClass -eq ""msFVE-RecoveryInformation""' -SearchBase $computer.DistinguishedName -Properties msFVE-RecoveryPassword | Select msFVE-RecoveryPassword")
Dim results = powershell.Invoke()
MessageBox.Show(results.Count)
For Each result As PSObject In powershell.Invoke
MessageBox.Show(result.ToString())
Next
Hope this could be helpful.
Best Regards.
Jiachen Li
----------
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.