Hello,
While testing out the csv export script recently provided by Devolutions in the Password Vault Managed Business Tools section, I came across this error:
ConvertTo-HubFlatObject: C:\Users\user\Desktop\script\export-vaults-powershell-module-script-csv.ps1:30
Line |
30 | $entries | ConvertTo-HubFlatObject | Export-CSV $filepath
| ~~~~~~~~~~~~~~~~~~~~~~~
| The term 'ConvertTo-HubFlatObject' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was
| included, verify that the path is correct and try again.
I confirmed I have the right module installed:
PS C:\Users\user\Desktop\script> Find-Module -Name Devolutions.Hub Version Name Repository Description ------- ---- ---------- ----------- 2021.9.30 Devolutions.Hub PSGallery Devolutions Password Hub PowerShell Module
Then I tried searching for the function in the error above in the Devolutions.Hub module:
PS C:\Users\user\Desktop\script> Find-Command -Name ConvertTo-HubFlatObject -ModuleName Devolutions.Hub
Find-Package: C:\program files\powershell\7\Modules\PowerShellGet\PSModule.psm1:8879
Line |
8879 | PackageManagement\Find-Package @PSBoundParameters | Microsoft …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| No match was found for the specified search criteria and module name 'Devolutions.Hub'. Try Get-PSRepository to see all available registered module repositories.
And it looks like the ConvertTo-HubFlatObject is missing from the Devolutions.Hub module in the PS Gallery. Is this something that needs to be corrected on the Devolutions side in the module? I can confirm the JSON version of the script works just fine.
Hi, superarash.
We just released a new version of Devolutions Password Hub PowerShell Module (2021.11.2) which fixes this issue.
Thank you for your feedback and have a good day.